-
Hi there <-- some view -->
<% if current_account %>
<-- raises exception -->
<-- invalid account id passed to account_ds -->
My current solution adds another conditional. <% if rodauth.logged_in? && current_account %> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
What kind of exception is raised? I intentionally wanted |
Beta Was this translation helpful? Give feedback.
What kind of exception is raised? I intentionally wanted
#current_account
to require login when it's used, because people should userodauth.logged_in?
. But I understand they might be used to how Devise behaves, and it's probably more convenient. TBH, the internalrequire_login
call was mostly left for backwards compatibility, it might be worth removing it, I will give this some thought.