diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-15 16:40:47 +0200 |
---|---|---|
committer | Daniel Molkentin <daniel@molkentin.de> | 2012-10-15 17:42:38 +0200 |
commit | 6e045b9ea1f3435da3456d333a57753069b6bc8c (patch) | |
tree | 0b3aa2c86fb24a91ca7366b4fadb9a88e99dba22 /lib | |
parent | 1c865f702c948dcc41b9a69f22d8a3e9e31b8f6b (diff) | |
download | nextcloud-server-6e045b9ea1f3435da3456d333a57753069b6bc8c.tar.gz nextcloud-server-6e045b9ea1f3435da3456d333a57753069b6bc8c.zip |
Check if $_Post
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/util.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php index b92f97b0375..7af28c920f0 100755 --- a/lib/util.php +++ b/lib/util.php @@ -392,8 +392,10 @@ class OC_Util { */ public static function verifyUser() { // Check password to set session - if (OC_User::login(OC_User::getUser(), $_POST["password"] ) === true) { - $_SESSION['verifiedLogin']=time() + (15 * 60); + if(isset($_POST['password'])) { + if (OC_User::login(OC_User::getUser(), $_POST["password"] ) === true) { + $_SESSION['verifiedLogin']=time() + (15 * 60); + } } // Check if the user verified his password in the last 15 minutes |