Remove unsused structs

This commit is contained in:
Piotr Kozimor 2021-04-21 15:11:23 +02:00
parent c852dc4180
commit c5854039d9

View file

@ -144,15 +144,6 @@ type registerRequest struct {
Type authtypes.LoginType `json:"type"`
}
type registerEmailRequestTokenRequest struct {
ClientSecret string `json:"client_secret"`
Email string `json:"email"`
IdAccessToken string `json:"id_access_token,omitempty"`
IdServer string `json:"id_server,omitempty"`
NextLink string `json:"next_link"`
SendAttempt int `json:"send_attempt"`
}
type authDict struct {
Type authtypes.LoginType `json:"type"`
Session string `json:"session"`
@ -201,11 +192,6 @@ type recaptchaResponse struct {
ErrorCodes []int `json:"error-codes"`
}
// server response for
type registerEmailRequestTokenResponse struct {
Sid string `json:"sid"`
}
// validateUsername returns an error response if the username is invalid
func validateUsername(username string) *util.JSONResponse {
// https://github.com/matrix-org/synapse/blob/v0.20.0/synapse/rest/client/v2_alpha/register.py#L161