geobtaa / geoportal

Big Ten Academic Alliance Geoportal
Other
10 stars 5 forks source link

New user email invite does not include the full link. #608

Closed karenmajewicz closed 2 months ago

karenmajewicz commented 2 months ago

I invited a few people to GBL Admin Dev recently. However, the email invitation only links to geo.btaa.org, the prod geoportal. It should link specifically to the GBL Admin they were invited to. Example (I redacted the token)

Hello [email]

Someone has invited you to http://geo.btaa.org/, you can accept it through the link below.

[Accept invitation] (http://geo.btaa.org/admin/users/invitation/accept.47?invitation_token=REDACTED)

If you don't want to accept the invitation, please ignore this email. Your account won't be created until you access the link above and set your password.

karenmajewicz commented 2 months ago

We also cannot seem to add a new user. We need our new RA to work in the app soon, so marking this as higher priority.

ewlarson commented 2 months ago

We'll need to set the environment config variable per host in production.rb:

  config.action_mailer.default_url_options = { :host => 'geo.btaa.org' }