Schedule functions (and validateUser function issue)

If the option Schedule Restricted is set , system.security.validateUser return false in the case that the user’s schedule is not active.

I think this may be OK (users are only able to log in when their assigned schedule is active), but may be better that instead a boolean, return why the validate is false (wrong username, wrong password or schedule not active).

Or better, make scripting functions that setting a username as argument, return if schedule is active or not. Or passing a username and a date range, returns info (maybe a dataset, that also can be used in a calendar component)

All the scripting functions that make posible to use schedule info for customizing, will be welcome. Thanks.

(using 7.6.0)