Merge branch 'master' of https://code.grnet.gr/git/astakos astakos/v0.7.2
authorSofia Papagiannaki <papagian@gmail.com>
Thu, 2 Aug 2012 17:04:24 +0000 (20:04 +0300)
committerSofia Papagiannaki <papagian@gmail.com>
Thu, 2 Aug 2012 17:04:24 +0000 (20:04 +0300)
Conflicts:
snf-astakos-app/astakos/im/forms.py

1  2 
snf-astakos-app/astakos/im/forms.py

@@@ -319,10 -320,10 +320,10 @@@ class LoginForm(AuthenticationForm)
          check = captcha.submit(rcf, rrf, RECAPTCHA_PRIVATE_KEY, self.ip)
          if not check.is_valid:
              raise forms.ValidationError(_('You have not entered the correct words'))
-     
      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