diff --git a/src/web/pages/account/mod.rs b/src/web/pages/account/mod.rs index ace945967..cf3d86d98 100644 --- a/src/web/pages/account/mod.rs +++ b/src/web/pages/account/mod.rs @@ -66,6 +66,7 @@ template! { enum AccountBody { Unlocked { suspended: bool, + oidc_enabled: bool, email_requirement: EmailRequirement, email: Option, devices: Vec, @@ -128,6 +129,7 @@ async fn get_account( response!(Account::new(context, user_card, AccountBody::Unlocked { suspended, + oidc_enabled: services.oidc.enabled(), email_requirement, email, devices: device_cards diff --git a/src/web/pages/templates/account.html.j2 b/src/web/pages/templates/account.html.j2 index 6e73ce15b..396aadb9b 100644 --- a/src/web/pages/templates/account.html.j2 +++ b/src/web/pages/templates/account.html.j2 @@ -9,7 +9,7 @@ Your account

Manage your account

{{ user_card }} {% match body %} - {% when AccountBody::Unlocked { suspended, email_requirement, email, devices } %} + {% when AccountBody::Unlocked { suspended, email_requirement, email, devices, oidc_enabled } %} {% if suspended %}

⚠️ Your account has been suspended by your homeserver's administrator. @@ -27,9 +27,11 @@ Your account Change your email

{% endif %} -

- Change your password -

+ {% if !oidc_enabled %} +

+ Change your password +

+ {% endif %}