Migrate to Rais 8.0
- Remove all Rodauth stuff and implement simple custom auth - Migrate from sprockets to propshaft, hack some bootstrap stuff
This commit is contained in:
parent
0198a22278
commit
c35c7da6e0
66 changed files with 518 additions and 684 deletions
|
|
@ -1,10 +1,36 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class HomeController < ApplicationController
|
||||
allow_unauthenticated_access only: [ :show ]
|
||||
|
||||
def show
|
||||
if rodauth.logged_in?
|
||||
else
|
||||
render :root
|
||||
end
|
||||
end
|
||||
|
||||
def profile
|
||||
end
|
||||
|
||||
private
|
||||
def initialize_sidebar_items
|
||||
return [] unless action_name == "profile"
|
||||
|
||||
[
|
||||
{
|
||||
label: "Profil",
|
||||
icon: :person,
|
||||
path: profile_path,
|
||||
active: action_name == "profile"
|
||||
},
|
||||
# {
|
||||
# label: "Passwort ändern",
|
||||
# path: new_password_path,
|
||||
# icon: :lock
|
||||
# },
|
||||
{
|
||||
label: "Logout",
|
||||
icon: :"box-arrow-right",
|
||||
path: session_path,
|
||||
method: :delete
|
||||
}
|
||||
]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue