User registation working. Sidebar built. Dashboard built. TOTP enable works - TOTP login works
This commit is contained in:
12
app/controllers/dashboard_controller.rb
Normal file
12
app/controllers/dashboard_controller.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class DashboardController < ApplicationController
|
||||
def index
|
||||
# First run: redirect to signup
|
||||
if User.count.zero?
|
||||
redirect_to signup_path
|
||||
return
|
||||
end
|
||||
|
||||
# User must be authenticated
|
||||
@user = Current.session.user
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user