reset password update auth_key

This commit is contained in:
xiaomlove
2025-04-05 21:43:37 +07:00
parent 1841f1377a
commit 291f5c03b5
4 changed files with 13 additions and 12 deletions

View File

@@ -129,6 +129,7 @@ class UserRepository extends BaseRepository
'username' => $username,
'email' => $email,
'secret' => $secret,
'auth_key' => mksecret(),
'editsecret' => '',
'passhash' => $passhash,
'stylesheet' => $setting['defstylesheet'],
@@ -165,6 +166,7 @@ class UserRepository extends BaseRepository
$update = [
'secret' => $secret,
'passhash' => $passhash,
'auth_key' => mksecret(),
];
$user->update($update);
return true;