Add "HOME" envvar while invoking the mailer for password recovery.
This commit is contained in:
parent
c40fd13193
commit
1987316df0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user