projects
/
pve-access-control.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add step/digits option to oath configuration
[pve-access-control.git]
/
PVE
/
Auth
/
Plugin.pm
diff --git
a/PVE/Auth/Plugin.pm
b/PVE/Auth/Plugin.pm
index 46b2d3bb73faf87a0b7ac572029326f29a5841a5..6b0298c45f8a8dd56b4cf439117681596ccac254 100755
(executable)
--- a/
PVE/Auth/Plugin.pm
+++ b/
PVE/Auth/Plugin.pm
@@
-116,6
+116,10
@@
sub parse_tfa_config {
$res->{key} = $1;
} elsif ($kvp =~ m/^url=(\S+)$/) {
$res->{url} = $1;
+ } elsif ($kvp =~ m/^digits=([6|7|8])$/) {
+ $res->{digits} = $1;
+ } elsif ($kvp =~ m/^step=([1-9]\d+)$/) {
+ $res->{step} = $1;
} else {
return undef;
}