The attached demo application illustrates how to create a simple user control system. User a is registered with “a” as their password, and user b is registered with “b” as their password. There are three buttons on the initial screen:
- Login(0), whose script was developed with Login(0) method, where a message is not displayed in case of successful login.
- Login(1), whose script was developed with Login(1) method, where a message informing on the operation’s success is displayed in case of successful login.
- User Test Screen, whose script opens the Test screen. Since user settings prevent user b from opening this screen, whenever this button is pressed a confirmation dialog for confirming the password will open to check which user is trying to open this screen.