aboutsummaryrefslogtreecommitdiff
path: root/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php
diff options
context:
space:
mode:
authorCamil Staps2015-05-24 22:42:26 +0200
committerCamil Staps2015-05-24 22:42:26 +0200
commitea7966cc6823ddaa349740e438c4f0cb588f5b32 (patch)
treeab5e2bb9de2b64ee3cdc7d5c0bfbca61ce742335 /src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php
parentUsing email as id; User & PasswordReminder (diff)
User id -> email in other classes
Diffstat (limited to 'src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php')
-rw-r--r--src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php4
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);
});
});
}