It would be very useful to validate a user from a business process point of view. Once a user is system authenticated (username and password), it should be useful to do some logical checks (administrative, and so on), and THEN the User_Validated method.
Compared to what could be done with older versions, the current implementation seems like a step backwards. In previous versions was possible to manage this scenario because User_Validated was a boolean method, but non in ANM 2025 release.
You could implement a “User_Validating” boolean method, respecting the logic you’ve successfully implemented in other methods (e.g. Row_Inserting…Row_Inserted… etc.):
public bool User_Validating(IAdvancedUser user) {
//return false and abort the login process if custom check fails
return true;
}
This is an example
public bool User_Validating(IAdvancedUser user) {
if (UserMustPayDebt(user.Username)) {
FailureMessage="The login is blocked due to not payed debts, please call our administrative office";
return false;}
else {
return true;
}
}
Thank you