Add "HOME" envvar while invoking the mailer for password recovery.

master
Philippe Pittoli 2024-03-24 01:00:02 +01:00
parent c40fd13193
commit 1987316df0
1 changed files with 4 additions and 1 deletions

View File

@ -47,8 +47,11 @@ class AuthD::Request
# PARAMETERS # PARAMETERS
[ "send", template_name, u_email ], [ "send", template_name, u_email ],
# ENV # ENV
{ "LOGIN" => u_login, "TOKEN" => u_token }, { "HOME" => "/", "LOGIN" => u_login, "TOKEN" => u_token },
true # clear environment true # clear environment
# input: Process::Redirect::Inherit,
# output: Process::Redirect::Inherit,
# error: Process::Redirect::Inherit
).success? ).success?
raise "cannot contact user #{u_login} address #{u_email}" raise "cannot contact user #{u_login} address #{u_email}"
end end