Update dependencies, add translation endpoint, and display a user message when logged in
This commit is contained in:
parent
6b043620b8
commit
348b0f24e9
19 changed files with 170 additions and 34 deletions
|
|
@ -367,7 +367,15 @@ pub async fn sign_in_post(
|
|||
.same_site(cookie::SameSite::Strict);
|
||||
Ok((
|
||||
jar.add(cookie),
|
||||
Redirect::to(&format!("/{}/", context.tr.current_lang_code())).into_response(),
|
||||
Redirect::to(&format!(
|
||||
"/{}/?{}={}&{}={}",
|
||||
context.tr.current_lang_code(),
|
||||
common::consts::GET_PARAMETER_USER_MESSAGE,
|
||||
Sentence::SignInSuccess as i64,
|
||||
common::consts::GET_PARAMETER_USER_MESSAGE_LEVEL,
|
||||
common::toast::Level::Success as usize
|
||||
))
|
||||
.into_response(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue