Skip to content

Commit

Permalink
FIx password setup for email loging
Browse files Browse the repository at this point in the history
 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 datacite/bracco@b34d86b#diff-02dddb4b8cfd2bf611557d5902eb96a2 .
So then the Fabrica app in production gets into a error loop

addresses datacite/bracco#224
  • Loading branch information
kjgarza committed Sep 4, 2019
1 parent d219ea0 commit 4987204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/mailable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4987204

Please sign in to comment.