Skip to content

This code has been specifically designed to create and test the functionality of a login and registration window. Leveraging the power of Python and PL/SQL, this program serves as a robust sandbox, showing the integration of these technologies for user registration and authentication purposes.

Notifications You must be signed in to change notification settings

AguilaDavid/login_register_window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login and Register Window

This repository contains test code for creating a login and registration window. This code also establishes communication with a database to store all the records and to be able to verify the access credentials of the clients.

For this project it is recommended to use pgAdmin4 as database manager.

Explication

First of all, a table called client was created to store the information about the client's login. These dice are used to validate the login.

Captura de Ecrã (2393)

  • This table contains a unique id for each client automatically generated using SERIAL. This method is advantageous in an environment with recurrence because the database manager itself generates and processes the ID.

  • The password is encrypted using a plsql extension called pgcrypto

  • The registration_dat is completed by a trigger during a table insert

In the python code, two windows are created, one with the longin and the other with the registration form. Whenever one window is open the other remains hidden.

Login window

Captura de Ecrã (2391)

Registration window

Captura de Ecrã (2390)

The table is protected. Ou seja, when a user registers but an error occurs, all the dice entered are ignored and the last safe commit is returned.

# Transition: Either all data is sent correctly or none is sent
try:
    cur.execute("QUERY")
    conn.commit()
except Exception:
    conn.rollback()

About

This code has been specifically designed to create and test the functionality of a login and registration window. Leveraging the power of Python and PL/SQL, this program serves as a robust sandbox, showing the integration of these technologies for user registration and authentication purposes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published