use POST instead of GET
This commit is contained in:
parent
35a6ad255d
commit
0617e06f69
|
@ -10,8 +10,8 @@ use OCA\Encryption\Util;
|
|||
|
||||
\OCP\JSON::checkAppEnabled('files_encryption');
|
||||
|
||||
$user = isset($_GET['user']) ? $_GET['user'] : '';
|
||||
$password = isset($_GET['password']) ? $_GET['password'] : '';
|
||||
$user = isset($_POST['user']) ? $_POST['user'] : '';
|
||||
$password = isset($_POST['password']) ? $_POST['password'] : '';
|
||||
|
||||
$migrationCompleted = true;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ $(document).ready(function(){
|
|||
var user = $('#user').val();
|
||||
var password = $('#password').val();
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
type: 'POST',
|
||||
url: OC.linkTo('files_encryption', 'ajax/getMigrationStatus.php'),
|
||||
dataType: 'json',
|
||||
data: {user: user, password: password},
|
||||
|
|
Loading…
Reference in New Issue