Compare commits
No commits in common. "deb6b8649e380588cd0049b8a18590dccec1f909" and "2a9345635024edc9b87f6344aa1059f48f2fa841" have entirely different histories.
deb6b8649e
...
2a93456350
2 changed files with 8 additions and 3 deletions
|
|
@ -368,7 +368,8 @@ pub async fn sign_in_post(
|
|||
Ok((
|
||||
jar.add(cookie),
|
||||
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,
|
||||
|
|
@ -394,7 +395,10 @@ pub async fn sign_out(
|
|||
jar = jar.remove(consts::COOKIE_AUTH_TOKEN_NAME);
|
||||
connection.sign_out(&token).await?;
|
||||
}
|
||||
Ok((jar, Redirect::to("/")))
|
||||
Ok((
|
||||
jar,
|
||||
Redirect::to(&format!("/{}/", context.tr.current_lang_code())),
|
||||
))
|
||||
}
|
||||
|
||||
/// RESET PASSWORD ///
|
||||
|
|
|
|||
|
|
@ -219,7 +219,8 @@ async fn sign_in() -> Result<(), Box<dyn Error>> {
|
|||
response.assert_status_see_other(); // Redirection after successful sign in.
|
||||
response.assert_text("");
|
||||
// English is the default language.
|
||||
response.assert_header("location", "/?user_message=16&user_message_icon=0");
|
||||
response.assert_header("location", "/en/?user_message=16&user_message_icon=0");
|
||||
dbg!(&response);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue