chore: reset password url (#1220)

* chore: reset password url

* dev: update password reset endpoint

* dev: update reset password url
This commit is contained in:
pablohashescobar 2023-06-06 19:15:20 +05:30 committed by GitHub
parent b6c0ddac50
commit fae9d8cdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ urlpatterns = [
), ),
# Password Manipulation # Password Manipulation
path( path(
"password-reset/<uidb64>/<token>/", "reset-password/<uidb64>/<token>/",
ResetPasswordEndpoint.as_view(), ResetPasswordEndpoint.as_view(),
name="password-reset", name="password-reset",
), ),

View File

@ -16,7 +16,7 @@ from plane.db.models import User
def forgot_password(first_name, email, uidb64, token, current_site): def forgot_password(first_name, email, uidb64, token, current_site):
try: try:
realtivelink = f"/email-verify/?uidb64={uidb64}&token={token}/" realtivelink = f"/reset-password/?uidb64={uidb64}&token={token}"
abs_url = current_site + realtivelink abs_url = current_site + realtivelink
from_email_string = settings.EMAIL_FROM from_email_string = settings.EMAIL_FROM