Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Don't return actions for m.login.token
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed May 31, 2022
1 parent 32153cf commit d1b49cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/handlers/src/compat/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ enum LoginType {
#[serde(rename = "m.login.password")]
Password { actions: Vec<Action> },

// we will leave MSC3824 `actions` as undefined for this auth type as unclear
// how it should be interpreted
#[serde(rename = "m.login.token")]
Token { actions: Vec<Action> },
Token,

#[serde(rename = "m.login.sso")]
Sso {
Expand Down Expand Up @@ -78,7 +80,7 @@ pub(crate) async fn get() -> impl IntoResponse {
identity_providers: vec![],
actions: vec![Action::Login, Action::Register],
},
LoginType::Token { actions: vec![] },
LoginType::Token,
],
};

Expand Down

0 comments on commit d1b49cf

Please sign in to comment.