added email change strategies

This commit is contained in:
Antonio Ramirez
2016-12-10 14:14:42 +01:00
parent 3fe09e3eb3
commit e215fd58bf
19 changed files with 626 additions and 119 deletions

View File

@ -117,7 +117,7 @@ class RecoveryController extends Controller
throw new NotFoundHttpException();
}
/** @var Token $token */
$token = $this->tokenQuery->whereIsRecoveryType($id, $code)->one();
$token = $this->tokenQuery->whereUserId($id)->whereCode($code)->whereIsRecoveryType()->one();
/** @var ResetPasswordEvent $event */
$event = $this->make(ResetPasswordEvent::class, [$token]);