diff --git a/www/web/templates/two_factor/core/login.html b/www/web/templates/two_factor/core/login.html index 0d36ba517b2f3dbdbdcf4cb3e8057091b125c751..63012d449f3ca929d7a18e3b23190afd1da73598 100644 --- a/www/web/templates/two_factor/core/login.html +++ b/www/web/templates/two_factor/core/login.html @@ -51,7 +51,7 @@ {% include "two_factor/_wizard_actions.html" %} </form> </div> -<a class="btn" href="/reset_password">{% trans "Forgot Password?" %}</a><br> +<a class="btn" href="/account/reset_password">{% trans "Forgot Password?" %}</a><br> <a class="btn" href="/account/registration/">{% trans "Register" %}</a><br> <a class="btn" href="/account/registration/resend">{% trans "Resend Activation Link" %}</a> {% endblock %} \ No newline at end of file diff --git a/www/web/warpauth/urls.py b/www/web/warpauth/urls.py index 4c294b47194c29431b5448e26287a44469e03dcb..d3fa67242197605cb2e5463f19ee08dfc35e78b2 100644 --- a/www/web/warpauth/urls.py +++ b/www/web/warpauth/urls.py @@ -14,8 +14,8 @@ urlpatterns = [ url(r'^account/registration/activate/(?P<token>\w+)/$', register.activate, name='activate'), url(r'^account/registration/resend/$', register.resend_token, name='resend_token'), - url(r'^reset_password/$', reset_password.gen_token, name='reset_password'), - url(r'^reset_password/(?P<reset_hash>\w+)/$', reset_password.change_password, name='index'), + url(r'^/account/reset_password/$', reset_password.gen_token, name='reset_password'), + url(r'^/account/reset_password/(?P<reset_hash>\w+)/$', reset_password.change_password, name='index'), url(r'^profile/$', profile.index, name='index'), url(r'^profile/change_password/$', profile.change_password, name='change_password'), diff --git a/www/web/warpauth/views/reset_password.py b/www/web/warpauth/views/reset_password.py index fb6f80634a47179e0727170fed85e860213acb20..4be1cbbf5525e18793be372a2b8ce6818c482152 100644 --- a/www/web/warpauth/views/reset_password.py +++ b/www/web/warpauth/views/reset_password.py @@ -32,7 +32,7 @@ def gen_token(request): p.email = usr.email p.hash = hashlib.sha1(os.urandom(128)).hexdigest() p.save() - email_content = _("https://infra.warpzone.ms/reset_password/%(hash)s") % {'hash': p.hash} + email_content = _("https://infra.warpzone.ms/account/reset_password/%(hash)s") % {'hash': p.hash} ret = send_email(p.email, "Requested Password Reset", email_content ) if not ret: pages["error"] = "Error while sending the email. Please contact the administrator."