models/SignupForm.php
/**
     * Signs user up.
     *
     * @return User|null the saved model or null if saving fails
     */
Signs user up.
@return User|null the saved model or null if saving fails
Signs user up . @return User|null the saved model or null if saving fails
public function signup()
    {
        if (!$this->validate()) {
            return null;
        }
        $user = new User();
        $user->username = $this->username;
        $user->fio = $this->fio;
        $user->email = $this->email;
        $user->organization_id = $this->organization_id;
        $user->setPassword($this->password);
        $user->generateAuthKey();
        return $user->save() ? $user : null;
    }
public function signup ( ) { if ( ! $ this -> validate ( ) ) { return null ; } $ user = new User ( ) ; $ user -> username = $ this -> username ; $ user -> fio = $ this -> fio ; $ user -> email = $ this -> email ; $ user -> organization_id = $ this -> organization_id ; $ user -> setPassword ( $ this -> password ) ; $ user -> generateAuthKey ( ) ; return $ user -> save ( ) ? $ user : null ; }
Signs user up.
Signs user up .
//        $user->email = $this->email;