Unreachable statement
This commit is contained in:
parent
d2a16c4dc8
commit
5aef60d2ca
|
@ -287,10 +287,8 @@ class Session implements IUserSession, Emitter {
|
||||||
$this->session->regenerateId();
|
$this->session->regenerateId();
|
||||||
if ($this->validateToken($password, $uid)) {
|
if ($this->validateToken($password, $uid)) {
|
||||||
return $this->loginWithToken($password);
|
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');
|
$message = \OC::$server->getL10N('lib')->t('User disabled');
|
||||||
throw new LoginException($message);
|
throw new LoginException($message);
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue