Confirm mail is now send to every newly created user
This commit is contained in:
parent
13c1c304d3
commit
f5a3353d09
1 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ class User extends Authenticatable
|
|||
}
|
||||
Cache::flush('AdminUsers');
|
||||
});
|
||||
static::created(function (User $user) {
|
||||
$user->sendMailConfirm();
|
||||
});
|
||||
static::updating(function (User $user) {
|
||||
if (Hash::needsRehash($user->password)) {
|
||||
$user->password = Hash::make($user->password);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue