mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
User middleware, fix #54
This commit is contained in:
@@ -33,7 +33,7 @@ pub async fn route_post_login<AP: AuthenticationProvider>(
|
||||
.validate_user_token(&form.username, &form.password)
|
||||
.await
|
||||
{
|
||||
session.insert("user", user).unwrap();
|
||||
session.insert("user", user.id).unwrap();
|
||||
Redirect::to(format!("/frontend/user/{}", &form.username))
|
||||
.see_other()
|
||||
.respond_to(&req)
|
||||
|
||||
Reference in New Issue
Block a user