Activation tokens should work again now.

Document the SMTPEnableTLS setting and update the documentation for SMTPPort.
This commit is contained in:
Azareal 2019-03-03 16:10:26 +10:00
parent 65924cac2a
commit 0e5ea2035e
4 changed files with 4 additions and 13 deletions

View File

@ -40,7 +40,9 @@ SMTPUsername - The username for the SMTP server.
SMTPPassword - The password for the SMTP server. SMTPPassword - The password for the SMTP server.
SMTPPort - The port for the SMTP server, usually 25. SMTPPort - The port for the SMTP server, usually 25 or 465 for full TLS.
SMTPEnableTLS - Enable TLS to fully encrypt the connection between Gosora and the SMTP server.
Search - The type of search system to use. Options: disabled, sql (default) Search - The type of search system to use. Options: disabled, sql (default)

View File

@ -1623,16 +1623,6 @@ func (r *GenRouter) routeSwitch(w http.ResponseWriter, req *http.Request, user c
} }
err = routes.AccountEditEmail(w,req,user,head) err = routes.AccountEditEmail(w,req,user,head)
case "/user/edit/token/": case "/user/edit/token/":
err = common.NoSessionMismatch(w,req,user)
if err != nil {
return err
}
err = common.MemberOnly(w,req,user)
if err != nil {
return err
}
counters.RouteViewCounter.Bump(93) counters.RouteViewCounter.Bump(93)
err = routes.AccountEditEmailTokenSubmit(w,req,user,extraData) err = routes.AccountEditEmailTokenSubmit(w,req,user,extraData)
case "/user/edit/logins/": case "/user/edit/logins/":

View File

@ -59,7 +59,7 @@ func userRoutes() *RouteGroup {
Action("routes.AccountEditMFASetupSubmit", "/user/edit/mfa/setup/submit/"), Action("routes.AccountEditMFASetupSubmit", "/user/edit/mfa/setup/submit/"),
Action("routes.AccountEditMFADisableSubmit", "/user/edit/mfa/disable/submit/"), Action("routes.AccountEditMFADisableSubmit", "/user/edit/mfa/disable/submit/"),
MemberView("routes.AccountEditEmail", "/user/edit/email/"), MemberView("routes.AccountEditEmail", "/user/edit/email/"),
Action("routes.AccountEditEmailTokenSubmit", "/user/edit/token/", "extraData"), View("routes.AccountEditEmailTokenSubmit", "/user/edit/token/", "extraData").NoHeader(),
MemberView("routes.AccountLogins", "/user/edit/logins/"), MemberView("routes.AccountLogins", "/user/edit/logins/"),

View File

@ -342,7 +342,6 @@ func AccountRegisterSubmit(w http.ResponseWriter, r *http.Request, user common.U
err = common.SendValidationEmail(username, email, token) err = common.SendValidationEmail(username, email, token)
if err != nil { if err != nil {
common.LogWarning(err)
return common.LocalError(phrases.GetErrorPhrase("register_email_fail"), w, r, user) return common.LocalError(phrases.GetErrorPhrase("register_email_fail"), w, r, user)
} }
} }