Hey,
i just want to extend the loginEventHandler, which is already working fine and everything is invoked as expected. But i am missing the option to send a custom Message to the client with ChainAction.Fail
How does that work?
lets say in this snippet:
How do i send a custom message to the client like: "Hey your password is shit." ?Code:String query = "SELECT password FROM users WHERE username = '"+c.getUserName()+"';"; EsObject msg = activeRecord.doQuery(query); if(msg.toString().equals(c.getPassword())) { return ChainAction.OkAndContinue; } else { // message client about wrong password return ChainAction.Fail; }
Thanks,
seb


Reply With Quote
But in this case i will just go with the second solution and use the ErrorType, saves some pain
