Announcement Announcement Module
No announcement yet.
Creating custom SpEL expression handler Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating custom SpEL expression handler

    Hey guys,

    I am building an email validation system. I am at the end of the task, I just need one more thing. With the use of spring roo security, I need to make a custom SpEL expression handler.

    So basically I have a field in the user, with which I know if the account is validated. So i need to build a custom handler that will check, during the log in process, if the user has validated the account or not and on that premises, allow him or don't allow him to log into the application.

    In more clarification: instead of access="hasRole('ROLE_USER')" I need, for example access="isUserActivated(...)".