mirror of
https://github.com/CorentinTh/it-tools.git
synced 2026-05-01 01:16:43 +00:00
refactor(otp-generator): coerce lowercase secret characters to uppercase
This commit is contained in:
committed by
Corentin THOMASSET
parent
f3b1863f09
commit
7c40539ef9
@@ -96,7 +96,7 @@ const { attrs: secretValidationAttrs } = useValidation({
|
||||
rules: [
|
||||
{
|
||||
message: 'Secret should be a base32 string',
|
||||
validator: (value) => value.match(/^[A-Z234567]+$/),
|
||||
validator: (value) => value.toUpperCase().match(/^[A-Z234567]+$/),
|
||||
},
|
||||
{
|
||||
message: 'Please set a secret',
|
||||
|
||||
Reference in New Issue
Block a user