mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
OTP: generate longer secrets, also make them easier to read/copy
This commit is contained in:
@@ -299,7 +299,7 @@ class UserHelper {
|
||||
if ($user->otp_enabled) {
|
||||
$user->otp_secret = $salt_based_secret;
|
||||
} else {
|
||||
$user->otp_secret = bin2hex(get_random_bytes(6));
|
||||
$user->otp_secret = bin2hex(get_random_bytes(10));
|
||||
}
|
||||
|
||||
$user->save();
|
||||
|
||||
Reference in New Issue
Block a user