forked from github/plane
chore: reset password url (#1220)
* chore: reset password url * dev: update password reset endpoint * dev: update reset password url
This commit is contained in:
parent
b6c0ddac50
commit
fae9d8cdc1
@ -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",
|
||||||
),
|
),
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user