Skip to content
Discussion options

You must be logged in to vote

There are only two styles of configuration methods for Rodauth: "auth methods" and "auth value methods". The former requires you to pass a block (and sometimes has arguments), while the latter accepts both a block and a value (and doesn't have arguments).\

The Rodauth feature documentation makes a clear distinction whether a configuration method is an "auth method" or an "auth value method", by grouping them together under the corresponding heading.

# auth value method
login_notice_flash "Successful login"
# OR
login_notice_flash { "Successful login" }

# auth method
before_login_route do
  # ...
end

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by whysthatso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants