Can set authorized authentication providers for a given account

This commit is contained in:
2023-04-24 19:13:36 +02:00
parent f64f01a958
commit abd86ff22d
5 changed files with 52 additions and 2 deletions

View File

@@ -150,6 +150,7 @@ impl UsersSyncBackend for EntityManager<User> {
) -> Res {
self.update_user(id, |mut user| {
user.allow_local_login = sources.local;
user.allow_login_from_providers = sources.upstream;
user
})
}