Browse Source
Remove redundant user fetching from login
pull/1094/head
Daniel García
5 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
0 additions and
1 deletions
-
src/api/identity.rs
|
|
@ -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); |
|
|
|