diff options
Diffstat (limited to 'Authentication/Token/UsernamePasswordToken.php')
-rw-r--r-- | Authentication/Token/UsernamePasswordToken.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Authentication/Token/UsernamePasswordToken.php b/Authentication/Token/UsernamePasswordToken.php index ae248e8..ce11cb3 100644 --- a/Authentication/Token/UsernamePasswordToken.php +++ b/Authentication/Token/UsernamePasswordToken.php @@ -21,12 +21,13 @@ class UsernamePasswordToken extends Token /** * Constructor. */ - public function __construct($user, $credentials, array $roles = array()) + public function __construct($user, $credentials, $userProviderName = null, array $roles = array()) { parent::__construct($roles); - $this->user = $user; + $this->setUser($user); $this->credentials = $credentials; + $this->userProviderName = $userProviderName; parent::setAuthenticated((Boolean) count($roles)); } |