From ea7966cc6823ddaa349740e438c4f0cb588f5b32 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 24 May 2015 22:42:26 +0200 Subject: User id -> email in other classes --- src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php') 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); }); }); } -- cgit v1.2.3