Commit 224bcc3c authored by Olga Brani's avatar Olga Brani Committed by Giorgos Korfiatis

astakos: Always enable email_change_confirm url

Email change confirmation url is enabled regardless of the email change
feature being activated or not. This is done to allow user email change from
the admin.
parent 2cf07e41
# Copyright (C) 2010-2014 GRNET S.A.
# Copyright (C) 2010-2016 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -114,16 +114,18 @@ urlpatterns = patterns(
url(r'^remove_auth_provider/(?P<pk>\d+)?$', 'remove_auth_provider', {},
name='remove_auth_provider'),
url(r'^email_change/confirm/(?P<activation_key>\w+)/?$', 'change_email',
{}, name='email_change_confirm'),
)
if settings.EMAILCHANGE_ENABLED:
urlpatterns += patterns(
'astakos.im.views',
url(r'^email_change/?$', 'request_change_email', {}, name='request_email_change'),
url(r'^email_change/confirm/(?P<activation_key>\w+)/?$',
'change_email', {},
name='email_change_confirm'))
url(r'^email_change/?$', 'request_change_email', {},
name='request_email_change'))
if 'local' in settings.IM_MODULES:
urlpatterns += patterns(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment