Skip to content

Commit

Permalink
Deprecate form_nonce (stage 1 of 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Apr 4, 2024
1 parent 56cea9a commit a8dc812
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/baseframe/forms/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ class Form(BaseForm):
__expects__: t.Iterable[str] = ()
__returns__: t.Iterable[str] = ()

form_nonce = bfields.NonceField(
"Nonce", validators=[_nonce_validator], default=lambda: uuid.uuid4().hex
)
form_nonce = bfields.NonceField("Nonce", default=lambda: uuid.uuid4().hex)
form_nonce_error = __("This form has already been submitted")

def __init_subclass__(cls, **kwargs: t.Any) -> None:
Expand Down

0 comments on commit a8dc812

Please sign in to comment.