diff options
Diffstat (limited to 'src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php')
-rw-r--r-- | src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php b/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php index 696a0a1..18c60d0 100644 --- a/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php +++ b/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php @@ -14,7 +14,7 @@ class PasswordReminder extends Model { protected $table = 'password_reminders'; protected $hidden = ['token']; - protected $fillable = ['userId', 'token', 'valid_till']; + protected $fillable = ['userEmail', 'token', 'valid_till']; protected $primaryKey = 'token'; public static function boot() { @@ -25,7 +25,7 @@ class PasswordReminder extends Model { $user = User::findOrFail($passwordReminder->userEmail); Mail::send('botleagues-api::emails.auth.reminder', ['token' => $passwordReminder->token], function($message) use ($user) { - $message->to($user->email, "User " . $user->id); + $message->to($user->email, "User " . $user->email); }); }); } |