Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jfa-go/commit/d4096d00621ac0c250248c0f81f5e3e26cfa549c You should set ROOT_URL correctly, otherwise the web may not work correctly.

pwr: trim suffix, not prefix for links

mautrix
Harvey Tindall 4 years ago
parent 306ede47d6
commit d4096d0062
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -536,7 +536,7 @@ func (emailer *Emailer) resetValues(pwr PasswordReset, app *appContext, noSub bo
if inviteLink != "" {
// Strip /invite form end of this URL, ik its ugly.
template["link_reset"] = true
pinLink := fmt.Sprintf("%s/reset?pin=%s", strings.TrimPrefix(inviteLink, "/invite"), pwr.Pin)
pinLink := fmt.Sprintf("%s/reset?pin=%s", strings.TrimSuffix(inviteLink, "/invite"), pwr.Pin)
template["pin"] = pinLink
// Only used in html email.
template["pin_code"] = pwr.Pin

Loading…
Cancel
Save