Forums / General / LoginHandler : Custom error ?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

LoginHandler : Custom error ?

Author Message

H-Works Agency

Friday 15 July 2011 10:54:17 am

Hello,

Inside a loginHandler how is it possible to return a custom error code ?

For now the only process i know is to "return false" which lead to default access refused but how can i diversify refusal ?

 

Like :

return 6 => Access deny : This account doesn't exists

return 4 => Access deny : Your account exists but you don't have the right to go there....

....

EZP is Great