diff --git a/CHANGELOG.md b/CHANGELOG.md index edaf3c3..d26aa69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Detect preferred color scheme. - Show loading indicator while attachment is being uploaded. - Content warnings. +- List enabled authentication methods in "Settings". ### Fixed diff --git a/src/api/users.ts b/src/api/users.ts index d5c1958..18fe859 100644 --- a/src/api/users.ts +++ b/src/api/users.ts @@ -83,6 +83,7 @@ export function defaultProfile(): Profile { export interface User extends Profile { source: Source; role: Role, + authentication_methods: string[]; client_config: { [clientName: string]: { [property: string]: any } }, } diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 81a8685..2834086 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -22,7 +22,16 @@
-

Change password

+

Authentication

+
+ Enabled authentication methods: + + + + + +
+

Change password

@@ -145,6 +154,10 @@ form { @include content-form; } +.authentication-methods { + margin-bottom: $block-inner-padding; +} + .password-form-message { margin-top: $block-outer-padding; }