From 35f75a6dddb4dfd477626563de22077efbafabe3 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 20 Jul 2019 11:14:35 +0500 Subject: [PATCH] Merge login data types --- internal/models/login/get_login_flows.go | 5 ----- internal/models/login/reply.go | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 internal/models/login/get_login_flows.go diff --git a/internal/models/login/get_login_flows.go b/internal/models/login/get_login_flows.go deleted file mode 100644 index db8a7bd..0000000 --- a/internal/models/login/get_login_flows.go +++ /dev/null @@ -1,5 +0,0 @@ -package login - -type GetLoginReply struct { - Flows []Flow `json:"flows"` // The homeserver's supported login types -} diff --git a/internal/models/login/reply.go b/internal/models/login/reply.go index 8a0e61f..4098df9 100644 --- a/internal/models/login/reply.go +++ b/internal/models/login/reply.go @@ -13,3 +13,8 @@ type LoginReply struct { type Flow struct { Type common.AuthenticationType `json:"type"` } + +// https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-login +type GetLoginReply struct { + Flows []Flow `json:"flows"` // The homeserver's supported login types +}