From e0bafc9651124bf49a3cf599630f8de8472b92af Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Wed, 1 Nov 2017 07:38:47 +0000 Subject: [PATCH] Type (#1183) --- .../lib/Lemonldap/NG/Portal/Password/Choice.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/Choice.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/Choice.pm index 1ea0f48dc..ebff9796b 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/Choice.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/Choice.pm @@ -18,13 +18,13 @@ sub init { sub confirm { my ( $self, $req, $pwd ) = @_; $self->checkChoice($req) or return PE_ERROR; - return $req->datas->{enabledMod2}->[0]->confirm( $req, $pwd ); + return $req->datas->{enabledMods2}->[0]->confirm( $req, $pwd ); } sub modifyPassword { my ( $self, $req, $pwd ) = @_; $self->checkChoice($req) or return PE_ERROR; - return $req->datas->{enabledMod2}->[0]->modifyPassword( $req, $pwd ); + return $req->datas->{enabledMods2}->[0]->modifyPassword( $req, $pwd ); } 1; -- GitLab