Title: No cflogin / cflogout / cfloginuser, getAuthUser() or isUserInRole() in BoxLang or bx-compat-cfml
Versions
- BoxLang 1.18.0+66 (MiniServer), bx-compat-cfml 1.40.0+56
What happens
Adobe ColdFusion and Lucee have a built-in sign-in framework: the cflogin, cflogout and cfloginuser tags (login, logout and loginUser in script), plus getAuthUser(), isUserInRole(), isUserLoggedIn() and getUserRoles(). BoxLang doesn’t have them, and neither does bx-compat-cfml. I couldn’t find a module for them on ForgeBox either.
Code written for ACF or Lucee stops at the first one:
<cflogout>
Component [logout] could not be found.
Many older CFML applications, and anything that grew out of BlogCFC, still use them. In Galaxie Blog they were leftovers: our real sign-in is our own session flag, so I removed them (about 15 lines) and now run the same on all three engines. But other applications will hit this on their first request to a secured page, and the error doesn’t say that the feature is missing on purpose.
Request
Could bx-compat-cfml provide these, even a simple session-based version? If they’re intentionally left out, a clearer error (“cflogin is not supported in BoxLang; see …”) or a line in the compatibility docs would save people time.
Thanks again for the quick HQL fix (BLMODULES-306).