mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Fix some grammar
This commit is contained in:
parent
7b762a2446
commit
67336446f3
|
|
@ -382,8 +382,8 @@ func validateApplicationService(
|
||||||
return matchedApplicationService.ID, nil
|
return matchedApplicationService.ID, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// authTypeIsValid check the registration authentication type of the request
|
// authTypeIsValid checks the registration authentication type of the request
|
||||||
// and returns an error if necessary
|
// and returns true or false depending on whether the auth type is valid
|
||||||
func authTypeIsValid(authType *authtypes.LoginType, req *http.Request) bool {
|
func authTypeIsValid(authType *authtypes.LoginType, req *http.Request) bool {
|
||||||
// If no auth type is specified by the client, send back the list of available flows
|
// If no auth type is specified by the client, send back the list of available flows
|
||||||
if *authType == "" && req.URL.Query().Get("access_token") != "" {
|
if *authType == "" && req.URL.Query().Get("access_token") != "" {
|
||||||
|
|
@ -396,7 +396,6 @@ func authTypeIsValid(authType *authtypes.LoginType, req *http.Request) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register processes a /register request.
|
// Register processes a /register request.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue