why i can't change user password? thanks.



     * Saves new account settings.


     * @return bool


    public function save()


        if ($this->validate()) {

            if ($this->new_password) {

                $this->user->password = $this->new_password;


            return $this->user->save();


        return false;



$model = new AccountForm();

        if ($model->load(yii::$app->request->post())&&$model->save()) {



[size="6"]error info[/size]

PHP Fatal Error 'yii\base\ErrorException' with message 'Maximum execution time of 5 seconds exceeded' 

in /home/wwwroot/www.yiitest.com/vendor/yiisoft/yii2/base/Security.php:565

Stack trace:

#0 [internal function]: yii\base\ErrorHandler->handleFatalError()

#1 {main}

Why your maximum execution time is set to 5 seconds? 30 is default.

I’m guessing you are using the User model from advanced app so it creates password hash automatically. That method can be load-heavy.

yes im used advanced app, can i set password hash somewhere? thank you.