Code refactoring
Code refactoring and removing a bad workaround...
# Modify the password TODO: change this
# Populate $req->{user} for logging purpose
my $tmp = $self->conf->{portalRequireOldPassword};
$self->conf->{portalRequireOldPassword} = 0;
.....
$self->conf->{portalRequireOldPassword} = $tmp;