OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Create user generate password does not consistently meet default password requirement

Open daveblack101 opened this issue 3 years ago • 3 comments

Describe the bug

Password randomness occasionally omits a special character or number

To Reproduce

Steps to reproduce the behavior: Got to create a new user >> click generate password.

Expected behavior

Password should include a number, lower and uppercase letter, and special character.

Screenshots

image

daveblack101 avatar Jul 16 '22 02:07 daveblack101

@CrestApps I think you are the one who worked on this, am I right?

hishamco avatar Jul 16 '22 02:07 hishamco

Yes. I’ll fix it tomorrow. Feel free to assign it to me

MikeAlhayek avatar Jul 16 '22 03:07 MikeAlhayek

https://github.com/OrchardCMS/OrchardCore/blob/b51608aee848285d37aa0590c622dfd7d9dbff41/src/OrchardCore.Modules/OrchardCore.Users/Views/UserFields.Edit.cshtml#L75-L84

BTW the current function SHOULD be align the password requirements for IdentityOptions

hishamco avatar Jul 16 '22 09:07 hishamco