mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Clean up.
This commit is contained in:
parent
1033995801
commit
721962589c
1 changed files with 1 additions and 2 deletions
|
@ -426,8 +426,7 @@ pub async fn build_federated_instances(
|
|||
|
||||
/// Checks the password length
|
||||
pub fn password_length_check(pass: &str) -> Result<(), LemmyError> {
|
||||
let password_length = pass.len();
|
||||
if !(10..=60).contains(&password_length) {
|
||||
if !(10..=60).contains(&pass.len()) {
|
||||
Err(ApiError::err("invalid_password").into())
|
||||
} else {
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue