rust-lang-ve / hilow

"Hilow" is a microblogging social feed where users are able to share they thoughts on different topics
Other
3 stars 4 forks source link

Feature | Implement password validator #24

Open morenol opened 3 years ago

morenol commented 3 years ago

Right now we allow any password in user creation.

https://github.com/rust-lang-ve/hilow/blob/c6655c04000fb52169891d9b78e4009eabe6bc9c/src/domain/services/user.rs#L66

We must implement a more safer validation for the password.

We can use a regex or use a configuration to define the number of lowercase letters, uppercase letters, numbers and punctuation symbols that the password must have.