mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Rework email_activation model, get rid of behaviors, use json column to store additional data
This commit is contained in:
@@ -62,10 +62,10 @@ class SignupController extends Controller {
|
||||
];
|
||||
|
||||
if (ArrayHelper::getValue($response['errors'], 'email') === E::RECENTLY_SENT_MESSAGE) {
|
||||
/** @var \common\models\confirmations\RegistrationConfirmation $activation */
|
||||
$activation = $model->getActivation();
|
||||
$response['data'] = [
|
||||
'canRepeatIn' => $activation->canRepeatIn(),
|
||||
'repeatFrequency' => $activation->repeatTimeout,
|
||||
'canRepeatIn' => $activation->canResendAt(),
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user