mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-10 22:14:48 -05:00
fix(xo-server): auth provider did not wait for token update (#10233)
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
> Users must be able to say: "I had this issue, happy to know it's fixed"
|
||||
|
||||
- [REST API] Fix `/users/:id/authentication_tokens` sometimes did not return the token used to make the request (PR [#10233](https://github.com/vatesfr/xen-orchestra/pull/10233))
|
||||
|
||||
### Packages to release
|
||||
|
||||
> When modifying a package, add it here with its release type.
|
||||
|
||||
@@ -70,7 +70,7 @@ export default class {
|
||||
|
||||
token.last_uses = last_uses
|
||||
|
||||
this._tokens.update(token)
|
||||
await this._tokens.update(token)
|
||||
|
||||
return { bypassOtp: true, expiration: token.expiration, userId: token.user_id }
|
||||
} catch (error) {}
|
||||
|
||||
Reference in New Issue
Block a user