diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-08-11 09:54:36 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-14 19:36:42 +0200 |
commit | 5aef60d2cad09d40496d92be862afaf02ba94443 (patch) | |
tree | 888c86bb9f93323525adb3c12ee7b39c78d70aeb /lib/private/User/Session.php | |
parent | d2a16c4dc8767446e63068fb88790aa1c1e861e6 (diff) | |
download | nextcloud-server-5aef60d2cad09d40496d92be862afaf02ba94443.tar.gz nextcloud-server-5aef60d2cad09d40496d92be862afaf02ba94443.zip |
Unreachable statement
Diffstat (limited to 'lib/private/User/Session.php')
-rw-r--r-- | lib/private/User/Session.php | 5 |
1 files changed, 1 insertions, 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; } /** |