assign trainers to user; add email to jwt token
This commit is contained in:
@@ -54,6 +54,7 @@ class LoginController extends CustomerApiController
|
||||
->issuedAt($time)// Configures the time that the token was issue (iat claim)
|
||||
->expiresAt($time + 3600)// Configures the expiration time of the token (exp claim)
|
||||
->withClaim('uid', $form->getCustomer()->getId())// Configures a new claim, called "uid"
|
||||
->withClaim('username', $form->getCustomer()->email)// Configures a new claim, called "username"
|
||||
->getToken($signer, $key); // Retrieves the generated token
|
||||
|
||||
return $this->asJson([
|
||||
|
||||
Reference in New Issue
Block a user