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



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

def init_current_user
  Authtown::Current.user =
    if rodauth.logged_in?
      # load existing account hash into Model:
      bridgetown_site.config.authtown.user_class_resolver.().(rodauth.)
    end
end