Help: Login form with assigned credentials

What I’m trying to do:
I am attempting to make a login form that is looking for credentials in a data table (users) that will contain employee_name, employee_id, and password. The purpose of the table is so that I can assign an employee an id number, and password. These employees do not have an email or I would use that existing template.

My login form contains employee_ID (self.employee_id_box.text), Password (self.password_box.text), and Login Button (self.login_button) login_button_click. I want the code to verify that the table contains said employee_id and password, as well as verifying that the password is for that employee_id. For example: ID A has Password 1234, ID B has password 5678, I do not want it to just look for any password, it must match for that specific employee_id.

Once the correct username and password combination are typed, the employee will then click the login button to take them to Form1. I have not been successful with this yet, so any assistance would be great.

If anyone needs more information, let me know.

Have you looked at the custom authentication docs? Anvil Docs | Custom user authentication Looking at that code will probably give you ideas on how to handle things in your app.

2 Likes