Skip to content

Update UserFactory password #4795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Update UserFactory password #4795

wants to merge 2 commits into from

Conversation

connectkushal
Copy link
Contributor

@connectkushal connectkushal commented Oct 6, 2018

The password set by the default UserFactory is secret which is 6 characters. This is less than the required minimum 8 character length as per new NIST standards on memorized secrets (i.e. user passwords) as stated here laravel/framework#25957

Although this is enforced in the next version of laravel by #4794, I think the UserFactory default should be changed in the current version itself.

By this pr, the new default is set to password


The default password is 'secret' which is 6 characters. This is less than the new requirement of minimum 8 character password.

The new default is set to 'secretpass'
@connectkushal connectkushal changed the title [5.7] Update UserFactory password Update UserFactory password Oct 6, 2018
@roberto-aguilar
Copy link
Contributor

@connectkushal have you considered password instead?, seems more intuitive and has 8 characters too.

@antonkomarev
Copy link
Contributor

Since its used only for the tests password will be the best choice!

@connectkushal
Copy link
Contributor Author

connectkushal commented Oct 6, 2018

if many think so i am willing to change it.

edit: Change done ! Deleted the explanation as its unnecessary now.

change from secretpass to password
@ankurk91
Copy link
Contributor

ankurk91 commented Oct 6, 2018

Who will update auth related controllers?

'password' => 'required|string|min:6|confirmed',

And translation

'password' => 'Passwords must be at least six characters and match the confirmation.',

@connectkushal
Copy link
Contributor Author

connectkushal commented Oct 6, 2018

@ankurk91 Please read the pr description again.

@ankurk91
Copy link
Contributor

ankurk91 commented Oct 6, 2018

You send it to master branch, it means you want it to be merged in 5.7.

I don't see any description about Auth related controllers. They are still enforcing min 6 length passwords

@antonkomarev
Copy link
Contributor

But master is 5.8. Isn't it?

@antonkomarev
Copy link
Contributor

Ah... it seems that laravel/laravel repository don't have 5.7 branch yet, so @ankurk91 is right. It will affect on 5.7 releases.

@connectkushal
Copy link
Contributor Author

connectkushal commented Oct 6, 2018

Changing required length for 5.7 may affect users of websites using current version. It is a breaking change, and is best to enforce the change in minimum password length in 5.8.

Since UserFactory is used for testing and development, any changes can be safely made to it, as done by this pr. If maintainers raise the same issue please create a new pr as you guys have pointed this out. Or if maintainers think this is the wrong branch I have made the same changes to the develop branch, here #4797

@taylorotwell
Copy link
Member

Develop branch?

@connectkushal connectkushal deleted the patch-1 branch October 6, 2018 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants