frontend/modules/user/models/AccountForm.php
/**
     * Saves new account settings.
     *
     * @return bool
     */
Saves new account settings.
@return bool
Saves new account settings . @return bool
public function save()
    {
        if ($this->validate()) {
            $this->user->username = $this->username;
            ($this->new_password) ? $this->user->password = $this->new_password : '';
            $this->user->tagline = $this->tagline;
            $this->user->email = $this->email;
            return $this->user->save();
        }
        return false;
    }
public function save ( ) { if ( $ this -> validate ( ) ) { $ this -> user -> username = $ this -> username ; ( $ this -> new_password ) ? $ this -> user -> password = $ this -> new_password : '' ; $ this -> user -> tagline = $ this -> tagline ; $ this -> user -> email = $ this -> email ; return $ this -> user -> save ( ) ; } return false ; }
Saves new account settings.
Saves new account settings .
// 新密码没填写 则为不修改密码