Commit 46c8b57a authored by Louis Chemineau's avatar Louis Chemineau
Browse files

Update lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/Register.pm

parent e711b9bc
Pipeline #8630 canceled with stages
......@@ -349,6 +349,8 @@ sub _register {
$req->data->{forceReset} = 1;
# Find a login
my $result = PE_OK;
if ($self->conf->{registerDisplayLoginInput}) {
# Do not build the login if it was specified
unless ($req->data->{registerInfo}->{login}) {
......@@ -359,7 +361,7 @@ sub _register {
$result = PE_REGISTERALREADYEXISTS;
}
} else {
my $result = $self->registerModule->computeLogin($req);
$result = $self->registerModule->computeLogin($req);
}
unless ( $result == PE_OK ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment