Browse Source

Merge branch 'dev'

master
Guillaume 4 years ago
parent
commit
5e98fc7841
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      backend/controllers/UserController.php

+ 8
- 3
backend/controllers/UserController.php View File

{ {
$model = new User(); $model = new User();


$userExist = User::searchOne([
'email' => Yii::$app->request->post('email')
]);
$userExist = false ;
$posts = Yii::$app->request->post() ;

if($posts) {
$userExist = User::searchOne([
'email' => $posts['User']['email']
]);
}


if ($userExist) { if ($userExist) {
Producer::addUser($userExist->id, GlobalParam::getCurrentProducerId()) ; Producer::addUser($userExist->id, GlobalParam::getCurrentProducerId()) ;

Loading…
Cancel
Save