mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 09:13:09 -06:00
Remove unsused structs
This commit is contained in:
parent
c852dc4180
commit
c5854039d9
|
|
@ -144,15 +144,6 @@ type registerRequest struct {
|
||||||
Type authtypes.LoginType `json:"type"`
|
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 authDict struct {
|
||||||
Type authtypes.LoginType `json:"type"`
|
Type authtypes.LoginType `json:"type"`
|
||||||
Session string `json:"session"`
|
Session string `json:"session"`
|
||||||
|
|
@ -201,11 +192,6 @@ type recaptchaResponse struct {
|
||||||
ErrorCodes []int `json:"error-codes"`
|
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
|
// validateUsername returns an error response if the username is invalid
|
||||||
func validateUsername(username string) *util.JSONResponse {
|
func validateUsername(username string) *util.JSONResponse {
|
||||||
// https://github.com/matrix-org/synapse/blob/v0.20.0/synapse/rest/client/v2_alpha/register.py#L161
|
// https://github.com/matrix-org/synapse/blob/v0.20.0/synapse/rest/client/v2_alpha/register.py#L161
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue