actions/LoginAction.php 1 location
|
@@ 57-61 (lines=5) @@
|
54 |
|
$model = Yii::createObject($this->modelClass); |
55 |
|
$load = $model->load(Yii::$app->request->post()); |
56 |
|
|
57 |
|
if (Yii::$app->request->isAjax) { |
58 |
|
Yii::$app->response->format = Response::FORMAT_JSON; |
59 |
|
|
60 |
|
return ActiveForm::validate($model); |
61 |
|
} |
62 |
|
|
63 |
|
if ($load && $model->login()) { |
64 |
|
return $this->redirectTo(Yii::$app->getUser()->getReturnUrl()); |
actions/RequestPasswordResetAction.php 1 location
|
@@ 65-69 (lines=5) @@
|
62 |
|
|
63 |
|
$load = $model->load(Yii::$app->request->post()); |
64 |
|
|
65 |
|
if (Yii::$app->request->isAjax) { |
66 |
|
Yii::$app->response->format = Response::FORMAT_JSON; |
67 |
|
|
68 |
|
return ActiveForm::validate($model); |
69 |
|
} |
70 |
|
|
71 |
|
if ($load && $model->validate()) { |
72 |
|
if ($model->sendEmail()) { |
actions/SignupAction.php 1 location
|
@@ 55-59 (lines=5) @@
|
52 |
|
|
53 |
|
$load = $model->load(Yii::$app->request->post()); |
54 |
|
|
55 |
|
if (Yii::$app->request->isAjax) { |
56 |
|
Yii::$app->response->format = Response::FORMAT_JSON; |
57 |
|
|
58 |
|
return ActiveForm::validate($model); |
59 |
|
} |
60 |
|
|
61 |
|
if ($load && ($user = $model->signup()) !== null) { |
62 |
|
$this->trigger(self::EVENT_AFTER_SIGNUP, $event); |