Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
d7c252d5
Commit
d7c252d5
authored
Jan 31, 2019
by
Clément OUDOT
Browse files
Allow to display env in password reset and register templates (#1631)
parent
efb7f667
Changes
2
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/MailPasswordReset.pm
View file @
d7c252d5
...
...
@@ -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
;
}
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/Register.pm
View file @
d7c252d5
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment