Clean code
This commit is contained in:
parent
a89b92f265
commit
2e9092d2bd
|
@ -300,13 +300,6 @@ sub run {
|
|||
$_2fDevices = [];
|
||||
}
|
||||
|
||||
# my @keep = ();
|
||||
# while (@$_2fDevices) {
|
||||
# my $element = shift @$_2fDevices;
|
||||
# $self->logger->debug("Looking for 2F device to delete ...");
|
||||
# push @keep, $element unless ( $element->{epoch} eq $epoch );
|
||||
# }
|
||||
|
||||
# Delete TOTP 2F device
|
||||
@$_2fDevices = grep { $_->{epoch} ne $epoch } @$_2fDevices;
|
||||
$self->logger->debug(
|
||||
|
|
|
@ -287,13 +287,6 @@ sub run {
|
|||
$_2fDevices = [];
|
||||
}
|
||||
|
||||
# my @keep = ();
|
||||
# while (@$_2fDevices) {
|
||||
# my $element = shift @$_2fDevices;
|
||||
# $self->logger->debug("Looking for 2F device to delete ...");
|
||||
# push @keep, $element unless ( $element->{epoch} eq $epoch );
|
||||
# }
|
||||
|
||||
# Delete U2F device
|
||||
@$_2fDevices = grep { $_->{epoch} ne $epoch } @$_2fDevices;
|
||||
$self->logger->debug(
|
||||
|
|
|
@ -181,13 +181,6 @@ sub run {
|
|||
$_2fDevices = [];
|
||||
}
|
||||
|
||||
# my @keep = ();
|
||||
# while (@$_2fDevices) {
|
||||
# my $element = shift @$_2fDevices;
|
||||
# $self->logger->debug("Looking for 2F device to delete ...");
|
||||
# push @keep, $element unless ( $element->{epoch} eq $epoch );
|
||||
# }
|
||||
|
||||
# Delete Yubikey device
|
||||
@$_2fDevices = grep { $_->{epoch} ne $epoch } @$_2fDevices;
|
||||
$self->logger->debug(
|
||||
|
|
Loading…
Reference in New Issue
Block a user