Skip to content

current_account - when nobody logged in, error is raised? #138

Answered by janko
benkoshy asked this question in Q&A
Discussion options

You must be logged in to vote

What kind of exception is raised? I intentionally wanted #current_account to require login when it's used, because people should use rodauth.logged_in?. But I understand they might be used to how Devise behaves, and it's probably more convenient. TBH, the internal require_login call was mostly left for backwards compatibility, it might be worth removing it, I will give this some thought.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@benkoshy
Comment options

@janko
Comment options

Answer selected by benkoshy
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