feature: use md5
This commit is contained in:
@@ -68,7 +68,7 @@ class AdminService implements AdminServiceInterface
|
||||
'msnv' => $data['msnv'],
|
||||
'name' => $data['name'],
|
||||
'mail' => $data['mail'],
|
||||
'pass' => Hash::make($data['password']),
|
||||
'pass' => md5($data['password']),
|
||||
'departments' => $data['departments'],
|
||||
'role' => $data['role'],
|
||||
'status' => User::STATUS_ACTIVE,
|
||||
|
||||
@@ -90,7 +90,7 @@ class UserService implements UserServiceInterface
|
||||
|
||||
public function updatePassword(User $user, string $newPassword): void
|
||||
{
|
||||
$user->pass = Hash::make($newPassword);
|
||||
$user->pass = md5($newPassword);
|
||||
$user->first_login = User::FIRST_LOGIN_FALSE;
|
||||
$user->save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user