Skip to content

Conversation

@francesmcmullin
Copy link
Contributor

⚠️ This change should only be combined with its companion change in Speakout. It would be bad to merge/deploy this change on its own ⚠️

There are, broadly, two small changes here. If desired, I can separate them into 2 PRs, but it's more convenient if it's OK to combine them.

  • Remove all session config from Activate Admin - this leaves room for the parent app (e.g., Speakout) to control all session config
  • Adjust login redirects - this seems like it was always broken, but this change fixes it, we needed to pass through the redir param, and pay attention to it with real/production logins


def initialize
unless ActiveRecord::Base.connection.active?
unless ActiveRecord::Base.connection.active? || ActiveRecord::Base.connection_pool.active_connection?

Check warning

Code scanning / Rubocop (reported by Codacy)

Limit lines to 80 characters. Warning

Line is too long. [107/80]
session[:account_id] = account.id
flash[:notice] = "Logged in successfully."
redirect url(:home)
redirect params[:redir] or url(:home)

Check warning

Code scanning / Rubocop (reported by Codacy)

Use &&/|| instead of and/or. Warning

Use || instead of or.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant