[#302] fixed admin reset password email link
This commit is contained in:
parent
80f710731c
commit
1de56d3d9e
|
@ -19,7 +19,7 @@ func SendAdminPasswordReset(app core.App, admin *models.Admin) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
actionUrl, urlErr := normalizeUrl(fmt.Sprintf(
|
actionUrl, urlErr := normalizeUrl(fmt.Sprintf(
|
||||||
"%s/#/confirm-password-reset/%s",
|
"%s/_/#/confirm-password-reset/%s",
|
||||||
strings.TrimSuffix(app.Settings().Meta.AppUrl, "/"),
|
strings.TrimSuffix(app.Settings().Meta.AppUrl, "/"),
|
||||||
token,
|
token,
|
||||||
))
|
))
|
||||||
|
|
|
@ -27,7 +27,7 @@ func TestSendAdminPasswordReset(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
expectedParts := []string{
|
expectedParts := []string{
|
||||||
"http://localhost:8090/#/confirm-password-reset/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.",
|
"http://localhost:8090/_/#/confirm-password-reset/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.",
|
||||||
}
|
}
|
||||||
for _, part := range expectedParts {
|
for _, part := range expectedParts {
|
||||||
if !strings.Contains(testApp.TestMailer.LastHtmlBody, part) {
|
if !strings.Contains(testApp.TestMailer.LastHtmlBody, part) {
|
||||||
|
|
Loading…
Reference in New Issue