fairdm.contrib.contributors.forms.account#
allauth forms customised for FairDM.
Module Contents#
Classes#
allauth login form with a crispy helper. |
|
allauth signup form with a crispy helper. |
|
Social signup form that lets an ORCID signup claim an inactive contributor account. |
API#
- class LoginForm(*args, **kwargs)#
Bases:
allauth.account.forms.LoginFormallauth login form with a crispy helper.
Args: *args: Passed to the allauth form. **kwargs: Passed to the allauth form.
Initialization
- class SignupForm(*args, **kwargs)#
Bases:
allauth.account.forms.SignupFormallauth signup form with a crispy helper.
Args: *args: Passed to the allauth form. **kwargs: Passed to the allauth form.
Initialization
- class SocialSignupForm(*args, **kwargs)#
Bases:
allauth.socialaccount.forms.SignupFormSocial signup form that lets an ORCID signup claim an inactive contributor account.
Contributors added by hand get an inactive account. When they later sign up with ORCID, the signup links to that record instead of creating a duplicate.
Args: *args: Passed to the allauth form. **kwargs: Passed to the allauth form.
Attributes: name: The display name.
Initialization
- name#
‘CharField(…)’
- try_save(request)#
Reuse an inactive account with the same email for an ORCID signup, skipping the email conflict.