use POST instead of GET

remotes/origin/stable6
Bjoern Schiessle 11 years ago
parent 35a6ad255d
commit 0617e06f69
  1. 4
      apps/files_encryption/ajax/getMigrationStatus.php
  2. 2
      apps/files_encryption/js/detect-migration.js

@ -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…
Cancel
Save