feat: auto-removes verificationToken upon manual user verify

This commit is contained in:
James
2021-01-22 17:13:27 -05:00
parent a6a23e3b15
commit 2139eb410f
3 changed files with 22 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ Example field configuration:
## Arguments and return values
All field-level hooks are formatted to accept the same arguments, although some may be `undefined` based on which field hook you are utilizing.
All field-level hooks are formatted to accept the same arguments, although some arguments may be `undefined` based on which field hook you are utilizing.
<Banner type="success">
<strong>Tip:</strong><br />
@@ -65,7 +65,7 @@ Field Hooks receive one `args` argument that contains the following properties:
#### Return value
All field hooks can optionally modify the return value of the field before the operation continues. Field Hooks may optionally return the value that should be used within the field.
Field hooks **must** return the intended value for the field to be used in the operation. You can modify the return value of the field before the operation continues, or simply send the `value` that you receive through the hook's argument. If you return `undefined` within a `beforeChange` or `beforeValidate` hook, the property will be unset from its document.
<Banner type="warning">
<strong>Important</strong><br/>