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

Method validate_confirm

app/forms/admin.py:21–23  ·  view source on GitHub ↗
(self, field)

Source from the content-addressed store, hash-verified

19 submit = SubmitField(_l("Delete"), name="admin_delete_user")
20
21 def validate_confirm(self, field):
22 if field.data != self.email.data: # type: ignore
23 raise ValidationError(_("Email confirmation did not match."))
24
25
26class AllowlistAddForm(StarletteForm):

Callers

nothing calls this directly

Calls 1

_Function · 0.50

Tested by

no test coverage detected