various: spelling, logging, and commentary cleanup

This commit is contained in:
Joe Bowers 2015-10-16 16:10:16 -07:00
parent 94662920b2
commit ca9227fc19
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ import (
// This handler is meant to be wrapped in clientTokenMiddleware, so a valid // This handler is meant to be wrapped in clientTokenMiddleware, so a valid
// bearer token for the client is expected to be present. // bearer token for the client is expected to be present.
// The user's JWT should be in the "token" parameter and the redirect URL should // The user's JWT should be in the "token" parameter and the redirect URL should
// be in the "redirect_uri" param. Note that this re // be in the "redirect_uri" param.
func handleVerifyEmailResendFunc( func handleVerifyEmailResendFunc(
issuerURL url.URL, issuerURL url.URL,
srvKeysFunc func() ([]key.PublicKey, error), srvKeysFunc func() ([]key.PublicKey, error),
@ -200,7 +200,7 @@ func handleEmailVerifyFunc(verifiedTpl *template.Template, issuer url.URL, keysF
if err != nil { if err != nil {
execTemplateWithStatus(w, verifiedTpl, emailVerifiedTemplateData{ execTemplateWithStatus(w, verifiedTpl, emailVerifiedTemplateData{
Error: "There's been an error processing your request.", Error: "There's been an error processing your request.",
Message: "Plesae try again later.", Message: "Please try again later.",
}, http.StatusInternalServerError) }, http.StatusInternalServerError)
return return
} }

View file

@ -286,7 +286,7 @@ func (e PasswordReset) Callback() *url.URL {
cbURL, err := url.Parse(cb) cbURL, err := url.Parse(cb)
if err != nil { if err != nil {
panic("EmailVerificaiton: can't parse callback. This should be impossible.") panic("PasswordReset: can't parse callback. This should be impossible.")
} }
return cbURL return cbURL
} }