diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-10-13 06:01:55 +1100 |
|---|---|---|
| committer | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-03-04 20:28:24 +1100 |
| commit | e618cf341627a89b5fec594090cf765c86aafaad (patch) | |
| tree | f8091502dbb3d0da8d6ea960f8cd029b2b151208 /internal/configuration/deprecation.go | |
| parent | 87d2a3419d6f29db900bc1aeb4cf5d7769a15ce3 (diff) | |
feat(web): one-time codes for identity verification
This replaces the JWT method for Identity Verification for most elements with a One-Time Code which has a controllable lifetime. These codes elevate the session for a duration, are less likely to be accidentally clicked, can be revoked, and generally a better experience for users. Users will be able to copy the codes directly from the email or manually type them. This improves the process as the user is very unlikely to input the code into the wrong window, and can't open it in the wrong browser. In addition the process prevents accidental clicking from causing issues.
Closes #3801
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/configuration/deprecation.go')
| -rw-r--r-- | internal/configuration/deprecation.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/configuration/deprecation.go b/internal/configuration/deprecation.go index 1080231f4..420acd194 100644 --- a/internal/configuration/deprecation.go +++ b/internal/configuration/deprecation.go @@ -358,4 +358,12 @@ var deprecations = map[string]Deprecation{ MapFunc: nil, ErrFunc: nil, }, + "jwt_secret": { + Version: model.SemanticVersion{Major: 4, Minor: 38}, + Key: "jwt_secret", + NewKey: "identity_validation.reset_password.jwt_secret", + AutoMap: true, + MapFunc: nil, + ErrFunc: nil, + }, } |
