Class: Authtown::Routes::InitRodauth

Inherits:
Bridgetown::Rack::Routes
  • Object
show all
Defined in:
lib/authtown/routes/rodauth.rb

Instance Method Summary collapse

Instance Method Details

#init_current_userObject



23
24
25
26
27
28
29
30
# File 'lib/authtown/routes/rodauth.rb', line 23

def init_current_user
  Authtown::Current.user =
    if rodauth.logged_in?
       = rodauth.[:id]
      user_class = bridgetown_site.config.authtown.user_class_resolver.()
      user_class[]
    end
end