Allow to display env in password reset and register templates (#1631)

This commit is contained in:
Clément OUDOT 2019-01-31 14:22:15 +01:00
parent 2362db3c99
commit 1f107db9a4
2 changed files with 10 additions and 0 deletions

View File

@ -600,6 +600,11 @@ sub display {
$tplPrm{$_} = $customParams->{$_};
}
}
for my $env_key ( keys %{ $req->env } ) {
$tplPrm{ "env_" . $env_key } = $req->env->{$env_key};
}
return 'mail', \%tplPrm;
}

View File

@ -521,6 +521,11 @@ sub display {
DISPLAY_PASSWORD_FORM => 1,
);
}
for my $env_key ( keys %{ $req->env } ) {
$templateParams{ "env_" . $env_key } = $req->env->{$env_key};
}
return ( 'register', \%templateParams );
}