1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 13:35:23 +02:00

fix: Corrected generated password reset links (#2633)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Futureless671 2023-10-15 13:40:23 -07:00 committed by GitHub
parent cb1769a352
commit 5f0a9981f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ export default defineComponent({
if (response?.status === 201 && data) { if (response?.status === 201 && data) {
const token: string = data.token; const token: string = data.token;
resetUrl.value = `${window.location.origin}/reset-password?token=${token}`; resetUrl.value = `${window.location.origin}/reset-password/?token=${token}`;
} }
generatingToken.value = false; generatingToken.value = false;

View file

@ -40,7 +40,7 @@ class PasswordResetService(BaseService):
# Send Email # Send Email
email_servive = EmailService() email_servive = EmailService()
reset_url = f"{self.settings.BASE_URL}/reset-password?token={token_entry.token}" reset_url = f"{self.settings.BASE_URL}/reset-password/?token={token_entry.token}"
try: try:
email_servive.send_forgot_password(email, reset_url) email_servive.send_forgot_password(email, reset_url)