1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-23 05:55:24 +02:00

[#302] fixed admin reset password email link

This commit is contained in:
Gani Georgiev 2022-08-12 17:08:36 +03:00
parent 80f710731c
commit 1de56d3d9e
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ func SendAdminPasswordReset(app core.App, admin *models.Admin) error {
}
actionUrl, urlErr := normalizeUrl(fmt.Sprintf(
"%s/#/confirm-password-reset/%s",
"%s/_/#/confirm-password-reset/%s",
strings.TrimSuffix(app.Settings().Meta.AppUrl, "/"),
token,
))

View File

@ -27,7 +27,7 @@ func TestSendAdminPasswordReset(t *testing.T) {
}
expectedParts := []string{
"http://localhost:8090/#/confirm-password-reset/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.",
"http://localhost:8090/_/#/confirm-password-reset/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.",
}
for _, part := range expectedParts {
if !strings.Contains(testApp.TestMailer.LastHtmlBody, part) {