Fix some grammar

This commit is contained in:
Andrew Morgan 2018-07-17 16:02:13 +01:00
parent 7b762a2446
commit 67336446f3

View file

@ -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.