Skip to content

Commit

Permalink
[pocketbase#302] fixed admin reset password email link
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Aug 12, 2022
1 parent 80f7107 commit 1de56d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mails/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
))
Expand Down
2 changes: 1 addition & 1 deletion mails/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1de56d3

Please sign in to comment.