geforkt von mirrored/vaultwarden
Remove redundant user fetching from login
Dieser Commit ist enthalten in:
Ursprung
a7a479623c
Commit
29c6b145ca
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
|
@ -147,7 +147,6 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: &ClientIp) -> JsonResult
|
||||||
}
|
}
|
||||||
|
|
||||||
// Common
|
// Common
|
||||||
let user = User::find_by_uuid(&device.user_uuid, &conn).unwrap();
|
|
||||||
let orgs = UserOrganization::find_by_user(&user.uuid, &conn);
|
let orgs = UserOrganization::find_by_user(&user.uuid, &conn);
|
||||||
|
|
||||||
let (access_token, expires_in) = device.refresh_tokens(&user, orgs);
|
let (access_token, expires_in) = device.refresh_tokens(&user, orgs);
|
||||||
|
|
Laden …
In neuem Issue referenzieren