use POST instead of GET

This commit is contained in:
Bjoern Schiessle 2013-11-26 11:38:49 +01:00
parent 35a6ad255d
commit 0617e06f69
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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},