CredentialsCheck Example 3: A user should not log in more than 5 times a day |
To specify that a user should not log in more than 5 times a day:
For an example of how this component has to be written, you can obtain the source code of the delivered CREDENTIALSCHECK component. Contact your USoft account manager for details. This source code is delivered "as is", and you need to be skilled in the Java language before you can alter this code. To trace the number of logins per day and per user, you could for example create a table having columns: User, Day and Number_of_login, and increment the Number_of_login column each time a user logs in. If the value of this column is larger than 5, return False, otherwise return True. |