Remodel seeds and factories.

This commit is contained in:
James Cole
2020-11-02 06:20:49 +01:00
parent 52385ae980
commit d6c7ccf62d
22 changed files with 380 additions and 200 deletions

View File

@@ -182,6 +182,11 @@ class UserEventHandler
$user = $event->user;
$email = $user->email;
$ipAddress = $event->ipAddress;
if($user->hasRole('demo')) {
return; // do not email demo user.
}
$list = app('preferences')->getForUser($user, 'login_ip_history', [])->data;
// see if user has alternative email address: