From 6e045b9ea1f3435da3456d333a57753069b6bc8c Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@statuscode.ch>
Date: Mon, 15 Oct 2012 16:40:47 +0200
Subject: [PATCH] Check if $_Post

---
 lib/util.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/util.php b/lib/util.php
index b92f97b037..7af28c920f 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
-- 
GitLab