MCPcopy Create free account
hub / github.com/lesspass/lesspass / save

Method save

containers/backend/api/admin.py:29–34  ·  view source on GitHub ↗
(self, commit=True)

Source from the content-addressed store, hash-verified

27 return password2
28
29 def save(self, commit=True):
30 user = super(UserCreationForm, self).save(commit=False)
31 user.set_password(self.cleaned_data["password1"])
32 if commit:
33 user.save()
34 return user
35
36
37class UserChangeForm(forms.ModelForm):

Callers 2

create_userMethod · 0.80
create_superuserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected