From 7d6b8f2247cce03f003cd816675a62b1a0772aca Mon Sep 17 00:00:00 2001 From: mahdavi Date: Sun, 4 Sep 2022 18:03:35 +0430 Subject: [PATCH] bug fix --- accounts/settings.py | 2 +- templates/registration/login.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/settings.py b/accounts/settings.py index c30eb6d..0ddebbc 100644 --- a/accounts/settings.py +++ b/accounts/settings.py @@ -178,7 +178,7 @@ USE_TZ = True # LOGIN_URL = '/accounts/login/' # LOGIN_REDIRECT_URL = '/accounts/profile/' -# LOGIN_URL = +LOGIN_URL = '/users/login' LOGIN_REDIRECT_URL = '/' AUTH_USER_MODEL = 'users.User' diff --git a/templates/registration/login.html b/templates/registration/login.html index bfbe248..296f176 100755 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -96,7 +96,7 @@ // var data = {'username': mobileNumberOrUsername} //} - $.post("{% url 'users:request_otp' %}", data).done( + $.post("{% url 'users:request_otp_api' %}", data).done( function (result) { console.log(result); if (result.hasOwnProperty('ttl')) {