fix: Password uses char count not byte length, redact Debug output, tighten test assertion
Some checks failed
CI / Check / Test (push) Failing after 49s
Some checks failed
CI / Check / Test (push) Failing after 49s
This commit is contained in:
@@ -60,5 +60,6 @@ async fn test_register_short_password_fails() {
|
||||
},
|
||||
)
|
||||
.await;
|
||||
assert!(result.is_err());
|
||||
let err = result.unwrap_err().to_string();
|
||||
assert!(err.contains("8 characters"), "expected password length error, got: {err}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user