コード例 #1
0
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize(EmailConfirmationRepository $tokens)
 {
     return $tokens->verify($this->email, $this->token);
 }
コード例 #2
0
ファイル: EmailChange.php プロジェクト: adiachenko/catchy_api
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize(EmailConfirmationRepository $tokens)
 {
     return $tokens->verify($this->input('new_email'), $this->token) && JWTAuth::parseToken()->authenticate();
 }