Revision 591d0505 snf-astakos-app/astakos/im/forms.py

b/snf-astakos-app/astakos/im/forms.py
254 254
        for user in AstakosUser.objects.filter(email = email):
255 255
            if user.provider == 'shibboleth':
256 256
                raise forms.ValidationError(_("This email is already associated with another shibboleth account."))
257
            elif not user.is_active:
258
                raise forms.ValidationError(_("This email is already associated with an inactive account. \
259
                                              You need to wait to be activated before being able to switch to a shibboleth account."))
257 260
        super(ShibbolethUserCreationForm, self).clean_email()
258 261
        return email
259 262

  

Also available in: Unified diff