projects
/
astakos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
60e78c9
)
Merge branch 'master' of https://code.grnet.gr/git/astakos
astakos/v0.7.2
author
Sofia Papagiannaki
<papagian@gmail.com>
Thu, 2 Aug 2012 17:04:24 +0000
(20:04 +0300)
committer
Sofia Papagiannaki
<papagian@gmail.com>
Thu, 2 Aug 2012 17:04:24 +0000
(20:04 +0300)
Conflicts:
snf-astakos-app/astakos/im/forms.py
snf-astakos-app/astakos/im/forms.py
patch
|
blob
|
history
diff --git
a/snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py
index
d22a985
..
8f22a15
100644
(file)
--- a/
snf-astakos-app/astakos/im/forms.py
+++ b/
snf-astakos-app/astakos/im/forms.py
@@
-323,7
+323,7
@@
class LoginForm(AuthenticationForm):
def clean(self):
super(LoginForm, self).clean()
- if self.user_cache.provider != 'local':
+ if self.user_cache and self.user_cache.provider not in ('local', ''):
raise forms.ValidationError(_('Local login is not the current authentication method for this account.'))
return self.cleaned_data