Can set authorized authentication providers for a given account
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user