mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix password related
This commit is contained in:
@@ -177,7 +177,7 @@ class UserRepository extends BaseRepository
|
||||
throw new \InvalidArgumentException("password confirmation != password");
|
||||
}
|
||||
$user = User::query()->findOrFail($id, ['id', 'username', 'class']);
|
||||
$operator = Auth::user();
|
||||
$operator = get_user_id();
|
||||
if ($operator) {
|
||||
$this->checkPermission($operator, $user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user