Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Edit profile page - password required #1302

Open
pascut opened this issue Aug 20, 2018 · 2 comments
Open

Edit profile page - password required #1302

pascut opened this issue Aug 20, 2018 · 2 comments

Comments

@pascut
Copy link

pascut commented Aug 20, 2018

On the my profile page or admin edit user pages, if I want to edit a user setting, the password and confirm assword fields are mandatory. When I press the save button and these fields are empty, the following errors appear:

The Password field does not match the pass_confirm field.
Password must be at least 8 characters long.

Is there a config that won't change the password each time I edit my profile or a user? This is totally wrong user experience. I find myself in the position of editing the bonfire core user pages. There must be a simple condition, if user pass and confirm pass are empty, but the user exists in the database, than the password fields won't be required on save.

@OAVHomeAdmin
Copy link

I believe I've read something that states removing pass_confirm from the following lines in the Users_model.php will correct this, which sucks because you can't confirm that the user is placing the correct password:

array( 'field' => 'password', 'label' => 'lang:bf_password', 'rules' => 'max_length[120]|valid_password|matches[pass_confirm]', ),

@huuptag
Copy link

huuptag commented Feb 26, 2019

[ 'field' => 'password', 'label' => 'lang:bf_password', 'rules' => 'trim|max_length[120]|valid_password|matches[pass_confirm]', ], [ 'field' => 'pass_confirm', 'label' => 'lang:bf_password_confirm', 'rules' => 'trim', ]
You can try to use trim validation rule.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants