Add "HOME" envvar while invoking the mailer for password recovery.
parent
c40fd13193
commit
1987316df0
|
@ -47,8 +47,11 @@ class AuthD::Request
|
|||
# PARAMETERS
|
||||
[ "send", template_name, u_email ],
|
||||
# ENV
|
||||
{ "LOGIN" => u_login, "TOKEN" => u_token },
|
||||
{ "HOME" => "/", "LOGIN" => u_login, "TOKEN" => u_token },
|
||||
true # clear environment
|
||||
# input: Process::Redirect::Inherit,
|
||||
# output: Process::Redirect::Inherit,
|
||||
# error: Process::Redirect::Inherit
|
||||
).success?
|
||||
raise "cannot contact user #{u_login} address #{u_email}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue