mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Better admin TOTP base32 test
This commit is contained in:
parent
532548572d
commit
d810a629c8
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ export class AdminSettingsSecurity extends AbstractViewSettings {
|
|||
adminLogin: () => this.adminLoginError(false),
|
||||
|
||||
adminTOTP: value => {
|
||||
let l = value.length;
|
||||
if (16 <= l && 0 == value.length * 5 % 8) {
|
||||
if (/[A-Z2-7]{16,}/.test(value) && 0 == value.length * 5 % 8) {
|
||||
Remote.request('AdminQRCode', (iError, data) => {
|
||||
if (!iError) {
|
||||
console.dir({data:data});
|
||||
|
|
Loading…
Reference in a new issue