Добавил генерацию jwt токена для формы подтверждения регистрации

This commit is contained in:
ErickSkrauch
2016-02-27 01:37:55 +03:00
parent 5be5a732bd
commit d1cdb847e0
4 changed files with 10 additions and 9 deletions

View File

@@ -35,10 +35,14 @@ class ConfirmEmailForm extends BaseKeyConfirmationForm {
$transaction->commit();
} catch (ErrorException $e) {
$transaction->rollBack();
throw $e;
if (YII_DEBUG) {
throw $e;
} else {
return false;
}
}
return true;
return $account->getJWT();
}
}