1
0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2024-11-08 20:12:34 +01:00

Remove redundant user fetching from login

This commit is contained in:
Daniel García 2020-08-11 16:48:15 +02:00
parent a7a479623c
commit 29c6b145ca
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A

View File

@ -147,7 +147,6 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: &ClientIp) -> JsonResult
}
// Common
let user = User::find_by_uuid(&device.user_uuid, &conn).unwrap();
let orgs = UserOrganization::find_by_user(&user.uuid, &conn);
let (access_token, expires_in) = device.refresh_tokens(&user, orgs);