Commit d7c252d5 authored by Clément OUDOT's avatar Clément OUDOT

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

parent efb7f667
...@@ -600,6 +600,11 @@ sub display { ...@@ -600,6 +600,11 @@ sub display {
$tplPrm{$_} = $customParams->{$_}; $tplPrm{$_} = $customParams->{$_};
} }
} }
for my $env_key ( keys %{ $req->env } ) {
$tplPrm{ "env_" . $env_key } = $req->env->{$env_key};
}
return 'mail', \%tplPrm; return 'mail', \%tplPrm;
} }
......
...@@ -521,6 +521,11 @@ sub display { ...@@ -521,6 +521,11 @@ sub display {
DISPLAY_PASSWORD_FORM => 1, DISPLAY_PASSWORD_FORM => 1,
); );
} }
for my $env_key ( keys %{ $req->env } ) {
$templateParams{ "env_" . $env_key } = $req->env->{$env_key};
}
return ( 'register', \%templateParams ); return ( 'register', \%templateParams );
} }
......
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