Browse Source

[backend] Création utilisateur

refactoring
Guillaume 4 years ago
parent
commit
b36ba5de63
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/controllers/UserController.php

+ 1
- 1
backend/controllers/UserController.php View File

@@ -158,7 +158,7 @@ class UserController extends BackendController
$userExist = false ;
$posts = Yii::$app->request->post() ;

if($posts) {
if($posts && isset($posts['User']['email']) && strlen($posts['User']['email']) > 0) {
$userExist = User::searchOne([
'email' => $posts['User']['email']
]);

Loading…
Cancel
Save