module Rodauth::InstanceMethods

def default_rodauth_name

def default_rodauth_name
  nil
end

def rodauth(name=default_rodauth_name)

def rodauth(name=default_rodauth_name)
  if name
    (@_rodauths ||= {})[name] ||= self.class.rodauth(name).new(self)
  else
    @_rodauth ||= self.class.rodauth.new(self)
  end
end