Add dashboard, allow password resets when signed in
This commit is contained in:
@@ -2,4 +2,10 @@ class ApplicationController < ActionController::Base
|
||||
rescue_from DeviseLdapAuthenticatable::LdapException do |exception|
|
||||
render :text => exception, :status => 500
|
||||
end
|
||||
|
||||
def require_user_signed_in
|
||||
unless user_signed_in?
|
||||
redirect_to welcome_path and return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user