From 1987316df094e159d4fea033784ba9de7646d9f3 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sun, 24 Mar 2024 01:00:02 +0100 Subject: [PATCH] Add "HOME" envvar while invoking the mailer for password recovery. --- src/requests/password.cr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/requests/password.cr b/src/requests/password.cr index ddc1da7..dea0c30 100644 --- a/src/requests/password.cr +++ b/src/requests/password.cr @@ -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