mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
reset password update auth_key
This commit is contained in:
@@ -185,7 +185,7 @@ class User extends Authenticatable implements FilamentUser, HasName
|
||||
'username', 'email', 'passhash', 'secret', 'stylesheet', 'editsecret', 'added', 'enabled', 'status',
|
||||
'leechwarn', 'leechwarnuntil', 'page', 'class', 'uploaded', 'downloaded', 'clientselect', 'showclienterror', 'last_home',
|
||||
'seedbonus', 'downloadpos', 'vip_added', 'vip_until', 'title', 'invites', 'attendance_card',
|
||||
'seed_points_per_hour', 'passkey',
|
||||
'seed_points_per_hour', 'passkey', 'auth_key'
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user