English source strings corrected (#510)
Requires .po/.pot files to be rebuilt This resolves #508
This commit is contained in:
committed by
Baptiste Gelez
parent
a674df3a77
commit
2d12524cd1
@@ -35,7 +35,7 @@ pub fn new(user: Option<User>, conn: DbConn, m: Option<String>, intl: I18n) -> R
|
||||
|
||||
#[derive(Default, FromForm, Validate)]
|
||||
pub struct LoginForm {
|
||||
#[validate(length(min = "1", message = "We need an email or a username to identify you"))]
|
||||
#[validate(length(min = "1", message = "We need an email, or a username to identify you"))]
|
||||
pub email_or_name: String,
|
||||
#[validate(length(min = "1", message = "Your password can't be empty"))]
|
||||
pub password: String,
|
||||
@@ -73,7 +73,7 @@ pub fn create(
|
||||
.expect("No user is registered");
|
||||
|
||||
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()
|
||||
};
|
||||
@@ -183,7 +183,7 @@ pub fn password_reset_request(
|
||||
) {
|
||||
if let Some(ref mut mail) = *mail.lock().unwrap() {
|
||||
mail.send(message.into())
|
||||
.map_err(|_| eprintln!("Couldn't send password reset mail"))
|
||||
.map_err(|_| eprintln!("Couldn't send password reset email"))
|
||||
.ok();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user