Redirect to login when logging out
This commit is contained in:
parent
6aa933be09
commit
e60243e50c
@ -85,6 +85,7 @@ pub async fn logout() -> Result<(), ServerFnError> {
|
||||
auth_session.logout().await
|
||||
.map_err(|e| ServerFnError::<NoCustomError>::ServerError(format!("Error getting auth session: {}", e)))?;
|
||||
|
||||
leptos_axum::redirect("/login");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user