From 3296fb344e39954c40a2187f71e168023bb9921c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1sztor=20G=C3=A1bor?= Date: Sat, 22 Oct 2016 20:13:37 +0200 Subject: [PATCH] Update User model --- app/Models/User.php | 58 +++------------------------------------------ 1 file changed, 3 insertions(+), 55 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 4bf67dea9cf7..f4e49a259ae3 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -5,19 +5,14 @@ use Event; use App\Libraries\Utils; use App\Events\UserSettingsChanged; use App\Events\UserSignedUp; -use Illuminate\Auth\Authenticatable; -use Illuminate\Foundation\Auth\Access\Authorizable; -use Illuminate\Database\Eloquent\Model; -use Illuminate\Auth\Passwords\CanResetPassword; -use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; -use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; -use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; +use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class User */ -class User extends Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract { +class User extends Authenticatable +{ /** * @var array */ @@ -27,8 +22,6 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac 'edit_all' => 0b0100, ]; - use Authenticatable, Authorizable, CanResetPassword; - /** * The database table used by the model. * @@ -102,26 +95,6 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac return PERSON_USER; } - /** - * Get the unique identifier for the user. - * - * @return mixed - */ - public function getAuthIdentifier() - { - return $this->getKey(); - } - - /** - * Get the password for the user. - * - * @return string - */ - public function getAuthPassword() - { - return $this->password; - } - /** * Get the e-mail address where password reminders are sent. * @@ -258,31 +231,6 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac return MAX_NUM_VENDORS; } - - /** - * @return mixed - */ - public function getRememberToken() - { - return $this->remember_token; - } - - /** - * @param string $value - */ - public function setRememberToken($value) - { - $this->remember_token = $value; - } - - /** - * @return string - */ - public function getRememberTokenName() - { - return 'remember_token'; - } - public function clearSession() { $keys = [