fix(xo-server-auth-google): bad argument passed to registerUser2 (#7031)
Introduced by 91b19d9bc4
See https://xcp-ng.org/forum/topic/7729
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
||||||
|
|
||||||
- [Backup/Restore] Fix `Cannot read properties of undefined (reading 'id')` error when restoring via an XO Proxy (PR [#7026](https://github.com/vatesfr/xen-orchestra/pull/7026))
|
- [Backup/Restore] Fix `Cannot read properties of undefined (reading 'id')` error when restoring via an XO Proxy (PR [#7026](https://github.com/vatesfr/xen-orchestra/pull/7026))
|
||||||
|
- [Google Auth] Fix `Internal Server Error` (xo-server: `Cannot read properties of undefined (reading 'id')`) when logging in with Google [Forum#7729](https://xcp-ng.org/forum/topic/7729) (PR [#7031](https://github.com/vatesfr/xen-orchestra/pull/7031))
|
||||||
|
|
||||||
### Packages to release
|
### Packages to release
|
||||||
|
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
<!--packages-start-->
|
<!--packages-start-->
|
||||||
|
|
||||||
- xo-server patch
|
- xo-server patch
|
||||||
|
- xo-server-auth-google patch
|
||||||
- xo-server-netbox minor
|
- xo-server-netbox minor
|
||||||
|
|
||||||
<!--packages-end-->
|
<!--packages-end-->
|
||||||
|
|||||||
@@ -53,8 +53,10 @@ class AuthGoogleXoPlugin {
|
|||||||
done(
|
done(
|
||||||
null,
|
null,
|
||||||
await xo.registerUser2('google', {
|
await xo.registerUser2('google', {
|
||||||
id: profile.id,
|
user: {
|
||||||
name: conf.scope === 'email' ? profile.emails[0].value : profile.displayName,
|
id: profile.id,
|
||||||
|
name: conf.scope === 'email' ? profile.emails[0].value : profile.displayName,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user