| 85 | |
| 86 | |
| 87 | class 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 | |
| 97 | class UserOAuthAccessRevokeForm(StarletteForm): |
nothing calls this directly
no outgoing calls
no test coverage detected