From 5aef60d2cad09d40496d92be862afaf02ba94443 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 11 Aug 2016 09:54:36 +0200 Subject: [PATCH] Unreachable statement --- lib/private/User/Session.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 3db6cd1a11a..a7d3068ac35 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -287,10 +287,8 @@ class Session implements IUserSession, Emitter { $this->session->regenerateId(); if ($this->validateToken($password, $uid)) { return $this->loginWithToken($password); - } else { - return $this->loginWithPassword($uid, $password); } - return false; + return $this->loginWithPassword($uid, $password); } /** @@ -464,7 +462,6 @@ class Session implements IUserSession, Emitter { $message = \OC::$server->getL10N('lib')->t('User disabled'); throw new LoginException($message); } - return false; } /** -- 2.39.5