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

Class UserChangeForm

containers/backend/api/admin.py:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class UserChangeForm(forms.ModelForm):
38 password = ReadOnlyPasswordHashField()
39
40 class Meta:
41 model = LessPassUser
42 fields = ("email", "password", "is_active", "is_admin")
43
44 def clean_password(self):
45 return self.initial["password"]
46
47
48class LessPassUserAdmin(BaseUserAdmin):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected