A very small commit, but let's do all the string corrections while I am already at it :-) Wraps up #510
This commit is contained in:
committed by
Baptiste Gelez
parent
26fc2cde5d
commit
723d2c4600
@@ -59,7 +59,7 @@ pub fn create(
|
||||
let user_id = if let Ok(user) = user {
|
||||
if !user.auth(&form.password) {
|
||||
let mut err = ValidationError::new("invalid_login");
|
||||
err.message = Some(Cow::from("Invalid username or password"));
|
||||
err.message = Some(Cow::from("Invalid username, or password"));
|
||||
errors.add("email_or_name", err);
|
||||
String::new()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user