Unreachable statement

This commit is contained in:
Jörn Friedrich Dreyer 2016-08-11 09:54:36 +02:00 committed by Roeland Jago Douma
parent d2a16c4dc8
commit 5aef60d2ca
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 1 additions and 4 deletions

View 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;
}
/**