I’m working on a project where I need to implement a login screen that appears immediately after entering the username, but before establishing any connection to the system. This behavior is similar to how Linux utilizes the .profile file for executing commands upon user login.
I want the system to display a login screen where the user can input their password, a login screen I made with Python. Only after successful authentication, the system should proceed with establishing the connection and loading the user environment.
How can I do this, similar to the .profile file on Linux, but on Windows?
I tried many approaches to this issue, setting it into the Initialize folder, and then running when the computer starts, adding it to the Regedit so it would start, but it is all slow, it starts after you entered the user, not before, like Linux does.