diff options
Diffstat (limited to 'lib/private/user')
-rw-r--r-- | lib/private/user/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/user/session.php b/lib/private/user/session.php index be38b1b1d8e..7030f3ddbc9 100644 --- a/lib/private/user/session.php +++ b/lib/private/user/session.php @@ -260,7 +260,7 @@ class Session implements IUserSession, Emitter { } // replace successfully used token with a new one \OC::$server->getConfig()->deleteUserValue($uid, 'login_token', $currentToken); - $newToken = \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate(32); + $newToken = \OC::$server->getSecureRandom()->generate(32); \OC::$server->getConfig()->setUserValue($uid, 'login_token', $newToken, time()); $this->setMagicInCookie($user->getUID(), $newToken); |