mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add tour and other improvements (#348)
* Add tour * Add instructions to set password for OAuth users * Tenant signup improvement * Fix bug on user soft delete * Slighlty darken background color * Add a stronger confirmation for board deletion
This commit is contained in:
committed by
GitHub
parent
57ecddb035
commit
f0346a73ec
@@ -9,6 +9,15 @@ class ApplicationController < ActionController::Base
|
||||
before_action :configure_permitted_parameters, if: :devise_controller?
|
||||
prepend_before_action :load_tenant_data
|
||||
|
||||
# Override Devise after sign in path
|
||||
def after_sign_in_path_for(resource)
|
||||
if resource.admin? && resource.sign_in_count == 1
|
||||
root_path(tour: true)
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def configure_permitted_parameters
|
||||
|
||||
Reference in New Issue
Block a user