mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
add command user:reset_password
This commit is contained in:
@@ -73,7 +73,7 @@ class UserRepository extends BaseRepository
|
||||
if ($password != $passwordConfirmation) {
|
||||
throw new \InvalidArgumentException("password confirmation != password");
|
||||
}
|
||||
$user = User::query()->where('username', $username)->firstOrFail();
|
||||
$user = User::query()->where('username', $username)->firstOrFail(['id', 'username']);
|
||||
$secret = mksecret();
|
||||
$passhash = md5($secret . $password . $secret);
|
||||
$update = [
|
||||
|
||||
Reference in New Issue
Block a user