hscstudio / yii2-mimin

Simple RBAC Manager for Yii2 (minify of yii2-admin)
51 stars 33 forks source link

Failed to update user password #17

Closed ahmadfadlydziljalal closed 7 years ago

ahmadfadlydziljalal commented 8 years ago

Dear Bang Hafid,

Saat update password user, password baru tidak bisa saat login. User masih bias login menggunakan password lama. Mungkin di old_password . CMIIW ...

Thanks buat mimin yang keren ini

Salam

jordan095 commented 8 years ago

Pernah mengahadapi hal yang sama , solusi saya kondisi if ($model->validatePassword($model >new_password) di comment,

if (!empty($model->new_password)) {
            //if ($model->validatePassword($model->new_password)) {
                                 $model->setPassword($model->new_password);
            //}
        }
hscstudio commented 7 years ago

solved