0001-python3-discard-tabs-in-python-source-files-31158.patch
src/authentic2/idp/saml/saml2_endpoints.py | ||
---|---|---|
704 | 704 |
'to function %s' % decision[0].__name__) |
705 | 705 |
dic = decision[1] |
706 | 706 |
if dic and 'authz' in dic: |
707 |
logger.info('decision is %s', dic['authz'])
|
|
707 |
logger.info('decision is %s', dic['authz'])
|
|
708 | 708 |
if 'message' in dic: |
709 |
logger.info(u'with message %s', unicode(dic['message']))
|
|
709 |
logger.info(u'with message %s', unicode(dic['message']))
|
|
710 | 710 |
if not dic['authz']: |
711 | 711 |
logger.info('access denied by an external function') |
712 | 712 |
access_granted = False |
src/authentic2/registration_backend/forms.py | ||
---|---|---|
128 | 128 |
if 'password1' in self.cleaned_data and 'password2' in self.cleaned_data: |
129 | 129 |
if self.cleaned_data['password1'] != self.cleaned_data['password2']: |
130 | 130 |
raise ValidationError(_("The two password fields didn't match.")) |
131 |
self.instance.set_password(self.cleaned_data['password1'])
|
|
131 |
self.instance.set_password(self.cleaned_data['password1'])
|
|
132 | 132 |
return self.cleaned_data |
133 | 133 | |
134 | 134 |
src/authentic2/registration_backend/urls.py | ||
---|---|---|
7 | 7 | |
8 | 8 |
urlpatterns = [ |
9 | 9 |
url(r'^activate/(?P<registration_token>[\w: -]+)/$', |
10 |
registration_completion, name='registration_activate'),
|
|
10 |
registration_completion, name='registration_activate'),
|
|
11 | 11 |
url(r'^register/$', |
12 | 12 |
RegistrationView.as_view(), |
13 | 13 |
name='registration_register'), |
src/authentic2/saml/migrations/0008_alter_foreign_keys.py | ||
---|---|---|
32 | 32 |
a.save() |
33 | 33 |
for fed in LibertyFederation.objects.all(): |
34 | 34 |
if fed.idp: |
35 |
lp = LibertyProvider.objects.get(old_id=fed.idp)
|
|
35 |
lp = LibertyProvider.objects.get(old_id=fed.idp)
|
|
36 | 36 |
fed.idp = lp.service_ptr_id |
37 | 37 |
if fed.sp: |
38 |
lp = LibertyProvider.objects.get(old_id=fed.sp)
|
|
38 |
lp = LibertyProvider.objects.get(old_id=fed.sp)
|
|
39 | 39 |
fed.sp = lp.service_ptr_id |
40 | 40 |
fed.save() |
41 | 41 | |
42 |
- |