Revision 21f89374
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
322 | 322 |
|
323 | 323 |
def clean(self): |
324 | 324 |
super(LoginForm, self).clean() |
325 |
if self.user_cache.provider != 'local':
|
|
325 |
if self.user_cache and self.user_cache.provider not in ('local', ''):
|
|
326 | 326 |
raise forms.ValidationError(_('Local login is not the current authentication method for this account.')) |
327 | 327 |
return self.cleaned_data |
328 | 328 |
|
... | ... | |
477 | 477 |
|
478 | 478 |
def __init__(self, user, *args, **kwargs): |
479 | 479 |
super(ExtendedPasswordChangeForm, self).__init__(user, *args, **kwargs) |
480 |
print self.fields.keyOrder |
|
481 | 480 |
|
482 | 481 |
def save(self, commit=True): |
483 | 482 |
user = super(ExtendedPasswordChangeForm, self).save(commit=False) |
Also available in: Unified diff