feat(xo-server-auth-saml): use registerUser2 (#5781)

This commit is contained in:
Pierre Donias 2021-05-18 11:28:49 +02:00 committed by GitHub
parent dadb16bb04
commit a126b5b61b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Metadata Backup] Add a warning on restoring a metadata backup (PR [#5769](https://github.com/vatesfr/xen-orchestra/pull/5769))
- [SAML] Compatible with users created with other authentication providers (PR [#5781](https://github.com/vatesfr/xen-orchestra/pull/5781))
### Bug fixes
@ -33,6 +34,7 @@
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xen-api minor
- xo-server-auth-saml minor
- xo-server-backup-reports patch
- xo-web minor
- xo-server patch

View File

@ -85,7 +85,7 @@ class AuthSamlXoPlugin {
}
try {
done(null, await xo.registerUser('saml', name))
done(null, await xo.registerUser2('saml', { user: { id: name, name } }))
} catch (error) {
done(error.message)
}