From 498720420e0bb3688469b680d98c3ab3d649fd3f Mon Sep 17 00:00:00 2001 From: Kristian Garza Date: Wed, 4 Sep 2019 10:09:23 +0200 Subject: [PATCH] FIx password setup for email loging By default the all repositories/clients get user as role_id on the welcome event https://github.com/datacite/lupo/blob/d219ea02ba99f11b54e41a4a776ada1c0d37e5fc/app/models/concerns/mailable.rb#L20 . But now in Fabrica, I think this role_id is now used exclusively by researchers in fabrica https://github.com/datacite/bracco/commit/b34d86b89a672e9985a95d2b55fa1d78f39c0ae4#diff-02dddb4b8cfd2bf611557d5902eb96a2 . So then the Fabrica app in production gets into a error loop addresses https://github.com/datacite/bracco/issues/224 --- app/models/concerns/mailable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/mailable.rb b/app/models/concerns/mailable.rb index 25d7d45fd..dd8e6fe25 100644 --- a/app/models/concerns/mailable.rb +++ b/app/models/concerns/mailable.rb @@ -17,7 +17,7 @@ def send_welcome_email payload = { "uid" => symbol.downcase, - "role_id" => "user", + "role_id" => "temporary", "name" => name, "client_id" => client_id, "provider_id" => provider_id