mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 11:22:25 +00:00
fix: Don't let OIDC users try to deactivate their accounts
This commit is contained in:
1 parent
7997cda678
commit
b32264dc4d
2 files changed
+2
-1
No files matched your search
@@ -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.
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user