Browse Source

Merge branch 'dev'

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

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

$userExist = false ; $userExist = false ;
$posts = Yii::$app->request->post() ; $posts = Yii::$app->request->post() ;


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

Loading…
Cancel
Save