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:
parent
80f710731c
commit
1de56d3d9e
@ -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,
|
||||
))
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user