diff options
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 |