memphis icon indicating copy to clipboard operation
memphis copied to clipboard

Password Validation

Open wahmedswl opened this issue 1 year ago • 3 comments

Hi! Password validation rule regex seems to be invalid.

Error says that "Password must be at least 8 characters long, contain both uppercase and lowercase, and at least one number and one special character".

Given validatePassword("d&gP52#WA"), it should be valid but it's throwing error

https://github.com/memphisdev/memphis/blob/9967388b362edc374884fab6f988b391fba2e28d/server/memphis_handlers_user_mgmt.go#L826

wahmedswl avatar Aug 13 '23 10:08 wahmedswl

So, is & not allowed it's just oversight etc?

Thanks

wahmedswl avatar Aug 13 '23 10:08 wahmedswl

Hi @wahmedswl, In which version did you get this error?

avrhamNeeman avatar Aug 13 '23 11:08 avrhamNeeman

@avrhamNeeman v1.1.1 but the code snippet taken from the current branch.

Thanks

wahmedswl avatar Aug 13 '23 15:08 wahmedswl