Skip to content

Commit 2e49a9e

Browse files
fix login return value of successful token logins
1 parent b442fa9 commit 2e49a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/User/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function login($uid, $password) {
282282
$this->session->regenerateId();
283283

284284
if ($this->validateToken($password, $uid)) {
285-
$this->loginWithToken($password);
285+
return $this->loginWithToken($password);
286286
} else {
287287
$this->manager->emit('\OC\User', 'preLogin', array($uid, $password));
288288
$user = $this->manager->checkPassword($uid, $password);

0 commit comments

Comments
 (0)