Esempio n. 1
0
 def clean_username(self):
     username = super().clean_username()
     university = self.cleaned_data['university']
     value = f"{username}@{university}"
     value = get_adapter().clean_username(value)
     return value
Esempio n. 2
0
 def save(self):
     allauth_forms.get_adapter().set_password(self.user,
                                              self.cleaned_data['password'])
Esempio n. 3
0
 def save(self):
     allauth_forms.get_adapter().set_password(
         self.user, self.cleaned_data['password'])