fix: Don't let OIDC users try to deactivate their accounts

This commit is contained in:
Ginger authored and Ellis Git committed 2026-09-10 19:55:50 +00:00
1 parent 7997cda678
commit b32264dc4d
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
The account deactivation page in the account management web UI now shows a message when OIDC is enabled instead of prompting users for a nonexistent account password.
+1 -1
View File
@@ -68,7 +68,7 @@ async fn route_deactivate(
let user_card = UserCard::for_local_user(&services, user_id.clone()).await;
let body = {
if !services.config.allow_deactivation {
if !services.config.allow_deactivation || services.oidc.enabled() {
DeactivateBody::Unavailable
} else if let Some(form) = form {
if let Err(err) = validate_deactivate_form(&services, &user_id, form).await {