amnah / yii2-user

Yii2 user authentication module
MIT License
253 stars 104 forks source link

update email or username check if exists in admin #134

Closed davidlopes closed 8 years ago

davidlopes commented 8 years ago

During update in admin, is missing a error message when username or email already exists. to resolve it you must add: if (Yii::$app->request->isAjax) { Yii::$app->response->format = Response::FORMAT_JSON; return ActiveForm::validate($user, $profile); } in function actionUpdate, file AdminController.php.

Very good extension. Thanks, David

amnah commented 8 years ago

Fixed, thanks!