MCPcopy Create free account
hub / github.com/hunvreus/devpush / UserDeleteForm

Class UserDeleteForm

app/forms/user.py:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87class UserDeleteForm(StarletteForm):
88 email = HiddenField(_l("Email"), validators=[DataRequired()])
89 confirm = StringField(_l("Confirmation"), validators=[DataRequired()])
90 submit = SubmitField(_l("Delete"), name="delete_user")
91
92 def validate_confirm(self, field):
93 if field.data != self.email.data: # type: ignore
94 raise ValidationError(_("Email confirmation did not match."))
95
96
97class UserOAuthAccessRevokeForm(StarletteForm):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected