1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-03 14:47:30 +02:00

Increase entropy in tokens for remember directives

This commit is contained in:
Marco
2016-12-04 16:52:18 +01:00
parent ac95be3714
commit 5e331924f6

View File

@@ -369,7 +369,7 @@ class Auth {
*/
private function createRememberDirective($userId) {
$selector = self::createRandomString(24);
$token = self::createRandomString(24);
$token = self::createRandomString(32);
$tokenHashed = password_hash($token, PASSWORD_DEFAULT);
$expires = time() + 3600 * 24 * 28;