Allow to display env in password reset and register templates (#1631)
This commit is contained in:
parent
2362db3c99
commit
1f107db9a4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user