]> source.dussan.org Git - nextcloud-server.git/commitdiff
Unreachable statement
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 11 Aug 2016 07:54:36 +0000 (09:54 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 14 Aug 2016 17:36:42 +0000 (19:36 +0200)
lib/private/User/Session.php

index 3db6cd1a11aa216b5d4f154c17b88693befcc071..a7d3068ac359de373eb3519bb54296bdce3cac37 100644 (file)
@@ -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;
        }
 
        /**