mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-12 06:23:50 +00:00
make jslint happier
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1b16f7138b
commit
f92943e2f8
@ -562,12 +562,13 @@ Ext.define('PVE.Parser', { statics: {
|
||||
},
|
||||
|
||||
parseTfaType: function(value) {
|
||||
/*jslint confusion: true*/
|
||||
var match;
|
||||
if (!value || !value.length) {
|
||||
return undefined;
|
||||
} else if (value === 'x!oath') {
|
||||
return 'totp';
|
||||
} else if (match = value.match(/^x!(.+)$/)) {
|
||||
} else if (!!(match = value.match(/^x!(.+)$/))) {
|
||||
return match[1];
|
||||
} else {
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user