Add extra functions to User.
This commit is contained in:
parent
dff012070e
commit
f138f0f4fc
|
@ -39,6 +39,37 @@ public function getAuthPassword()
|
||||||
return $this->password;
|
return $this->password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the token value for the "remember me" session.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getRememberToken()
|
||||||
|
{
|
||||||
|
return $this->remember_token;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the token value for the "remember me" session.
|
||||||
|
*
|
||||||
|
* @param string $value
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setRememberToken($value)
|
||||||
|
{
|
||||||
|
$this->remember_token = $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the column name for the "remember me" token.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getRememberTokenName()
|
||||||
|
{
|
||||||
|
return 'remember_token';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the e-mail address where password reminders are sent.
|
* Get the e-mail address where password reminders are sent.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue