Merge branch 'issue-42' into 'develop'
Send mail to new users See merge request ldc-web/projets/support-web!65
This commit is contained in:
commit
09356e6ee4
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