diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-02 07:01:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-02 07:01:58 -0700 |
commit | d59b39c6aad3863583294dd59b616c34a1fadf35 (patch) | |
tree | cd43833a46eb8bf78243ea59d4e4a2d4c4b61ca1 | |
parent | 6a368f7e54d24f67e01f86cbd383ae23c93f44c1 (diff) | |
download | trackermap-web-d59b39c6aad3863583294dd59b616c34a1fadf35.tar.gz trackermap-web-d59b39c6aad3863583294dd59b616c34a1fadf35.tar.bz2 trackermap-web-d59b39c6aad3863583294dd59b616c34a1fadf35.zip |
Default TOTP key to null
-rw-r--r-- | modern/src/login/RegisterPage.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/login/RegisterPage.jsx b/modern/src/login/RegisterPage.jsx index 1ec791a1..cffed803 100644 --- a/modern/src/login/RegisterPage.jsx +++ b/modern/src/login/RegisterPage.jsx @@ -42,7 +42,7 @@ const RegisterPage = () => { const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); - const [totpKey, setTotpKey] = useState(''); + const [totpKey, setTotpKey] = useState(null); const [snackbarOpen, setSnackbarOpen] = useState(false); useEffectAsync(async () => { @@ -114,7 +114,7 @@ const RegisterPage = () => { required label={t('loginTotpKey')} name="totpKey" - value={totpKey} + value={totpKey || ''} InputProps={{ readOnly: true, }} |