mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-14 03:51:27 +00:00
refactor: remove duplicate char reference
This commit is contained in:
parent
9c2d1e18a2
commit
5392b6fd0d
1 changed files with 4 additions and 4 deletions
|
|
@ -34,10 +34,10 @@ pub fn random_12_char_string() -> String {
|
|||
|
||||
/// Exclude O and 0, lowercase letters
|
||||
fn is_usable_char(c: &char) -> bool {
|
||||
('1'..='9').contains(&c) ||
|
||||
('A'..='N').contains(&c) ||
|
||||
('P'..'Z').contains(&c) ||
|
||||
['@', '#', '$', '%'].contains(&c)
|
||||
('1'..='9').contains(c) ||
|
||||
('A'..='N').contains(c) ||
|
||||
('P'..'Z').contains(c) ||
|
||||
['@', '#', '$', '%'].contains(c)
|
||||
}
|
||||
|
||||
pub async fn hash_password(password_plain_text: String) -> Result<String, ServiceError> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue