From 71f51926c0869c845cbb5094bbab6ed8e02301cb Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Sat, 18 Aug 2018 23:15:38 +0200 Subject: [PATCH] Add comment --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Yubikey.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Yubikey.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Yubikey.pm index 733e046ef..4ec7f650f 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Yubikey.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Yubikey.pm @@ -34,6 +34,9 @@ sub init { $self->logger->error($@); return 0; } + + # If self registration is enabled and "activation" is just set to + # "enabled", replace the rule to detect if user has registered its key if ( $self->conf->{yubikey2fSelfRegistration} and $self->conf->{yubikey2fActivation} eq '1' ) {