diff options
author | Camil Staps | 2015-05-17 16:44:43 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-17 16:44:43 +0200 |
commit | 1a115cfc53782fd51e55ed86671d10c7c2bb08b2 (patch) | |
tree | a880bcd98ed231dafcac199c57a8b4f2927de3a6 /src/CamilStaps/BotleaguesApi/Database | |
parent | Support array as config.allowed_origin (diff) |
First attempt
Diffstat (limited to 'src/CamilStaps/BotleaguesApi/Database')
-rw-r--r-- | src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php | 2 | ||||
-rw-r--r-- | src/CamilStaps/BotleaguesApi/Database/User.php | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php b/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php index 40bc578..204df90 100644 --- a/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php +++ b/src/CamilStaps/BotleaguesApi/Database/PasswordReminder.php @@ -23,7 +23,7 @@ class PasswordReminder extends Model { $this->valid_till = date("Y-m-d H:i:s", time() + 3600); $user = User::find($this->userId); - Mail::send('packages.camil-staps.botleagues-api.emails.auth.reminder', ['token' => $this->token], function($message) use ($user) { + Mail::send('botleagues-api::emails.auth.reminder', ['token' => $this->token], function($message) use ($user) { $message->to($user->email, "User " . $user->id); }); diff --git a/src/CamilStaps/BotleaguesApi/Database/User.php b/src/CamilStaps/BotleaguesApi/Database/User.php index 383cc38..0af91c3 100644 --- a/src/CamilStaps/BotleaguesApi/Database/User.php +++ b/src/CamilStaps/BotleaguesApi/Database/User.php @@ -1,10 +1,14 @@ <?php namespace CamilStaps\BotleaguesApi\Database; -use Illuminate\Auth\Reminders\RemindableInterface; -use Illuminate\Auth\UserInterface; +use Illuminate\Auth\Authenticatable; +use Illuminate\Auth\Passwords\CanResetPassword; +use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; +use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; -class User extends Model implements UserInterface, RemindableInterface { +class User extends Model implements AuthenticatableContract, CanResetPasswordContract { + + use Authenticatable, CanResetPassword; protected $table = 'users'; protected $hidden = ['password', 'remember_token', 'api_key']; @@ -65,11 +69,11 @@ class User extends Model implements UserInterface, RemindableInterface { } /** - * Get the e-mail address where password reminders are sent. + * Get the e-mail address where password reset links are sent. * * @return string */ - public function getReminderEmail() { + public function getEmailForPasswordReset() { return $this->email; } }
\ No newline at end of file |