mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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),
|
adminLogin: () => this.adminLoginError(false),
|
||||||
|
|
||||||
adminTOTP: value => {
|
adminTOTP: value => {
|
||||||
let l = value.length;
|
if (/[A-Z2-7]{16,}/.test(value) && 0 == value.length * 5 % 8) {
|
||||||
if (16 <= l && 0 == value.length * 5 % 8) {
|
|
||||||
Remote.request('AdminQRCode', (iError, data) => {
|
Remote.request('AdminQRCode', (iError, data) => {
|
||||||
if (!iError) {
|
if (!iError) {
|
||||||
console.dir({data:data});
|
console.dir({data:data});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue