@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | App::$Session->getFlashBag()->add('error', __('User is never exist or password is incorrect!')); |
| 54 | 54 | // initialize fail event |
| 55 | 55 | App::$Event->run(static::EVENT_USER_LOGIN_FAIL, [ |
| 56 | - 'model' => $loginForm |
|
| 56 | + 'model' => $loginForm |
|
| 57 | 57 | ]); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -113,14 +113,14 @@ discard block |
||
| 113 | 113 | if ($registerForm->tryRegister($configs['registrationType'] === 1)) { |
| 114 | 114 | // initialize succes signup event |
| 115 | 115 | App::$Event->run(static::EVENT_USER_REGISTER_SUCCESS, [ |
| 116 | - 'model' => $registerForm |
|
| 116 | + 'model' => $registerForm |
|
| 117 | 117 | ]); |
| 118 | 118 | // send notification of successful registering |
| 119 | 119 | App::$Session->getFlashBag()->add('success', __('Your account is registered. You must confirm account via email')); |
| 120 | 120 | } else { |
| 121 | 121 | // init fail signup event |
| 122 | 122 | App::$Event->run(static::EVENT_USER_REGISTER_FAIL, [ |
| 123 | - 'model' => $registerForm |
|
| 123 | + 'model' => $registerForm |
|
| 124 | 124 | ]); |
| 125 | 125 | App::$Session->getFlashBag()->add('error', __('Login or email is always used on website')); |
| 126 | 126 | } |