Skip to content

Latest commit

 

History

History
167 lines (87 loc) · 5.7 KB

File metadata and controls

167 lines (87 loc) · 5.7 KB

SUK AUTH VALIDATION

Sign Up/Sign In

Key Points:

  • GUI experience
  • Strict Validation by Regular Expressions/Regex.
  • Password Hashing for extra Security.
  • SMTP for Sending Mail.
  • CURD operations

Dependencies

  • Python 3 or newer -> Python Programming Language, version 3 or newer
  • tkinter -> It is for GUI, pip install tk
  • requests -> It is for get, post, put and delete operations via Sheety ENDPOINT, pip install requests
  • bcrypt -> For the Hashing of the Password, pip install bcrypt

Setup steps:

  1. Install Python 3.
  2. Install dependencies.
  3. Create a blank folder
  4. Put all given files in this repository (README.md is not necessary) to new created folder.
  5. Change SMTP server, SMTP port(make sure that your port code should be for SSL), SMTP service email and password constant in main.py according to you.
  6. Change Sheety End Point in main.py. visit Sheety.
  7. Open cmd or terminal in the same folder.
  8. type python main.py, then script will start running

Program Flow

Note: Embedded videos are not working!

First screen that appear is Start Page, that ask for Sign Up/Sign In operation:

Start Page

Sign Up

When we click on Sign Up, this screen appear.

Start Page

All i buttons contain requirment of their attribute to pass this page. When user click on it a message box appear. i buttons video:

Username i button

Name i button

Email i button

Password i button

Without Status (before Submit):

Start Page

Make sure to give email that can accept emails for 6-digit code.

If User input didn't match the Regular Expressions, then status of each input will show so user easily identify where are problems.

Example 1:

Start Page

Example 2:

Start Page

Example 3:

Start Page

When user pass the Regular Expressions, a Code Page appear, see below:

Code Page

Code Page

When user click on Send Code, it send code to user email with subject SUK - Verification Code and it turns into Resent Code.

Code received on email.

Code Page

But when user enter the wrong code:

Code Page

Then, click on Submit, if code is wrong it shows wrong status like:

Code Page

When user input right code, it will redirect to Home.

Home

Note: May be you need to click on Reload button to see the data you fill.

Watch below video:

Now, You are registered!!, Later again you will Sign In to access your account.

See data in google sheet with Hashed Password:

Data in Google Sheet with Hashed Password


Sign In

After registratio, You can go in Sign In from Start Page, then this screen appears.

Start Page

When User input credentials, if they are wrong it will show status otherwise move towards Code Page to complete Sign In process.

User input:

Start Page

Example 1:

Start Page

Example 2:

Start Page

When user fill right credential, it wil redirect to code Page. See below:

Note: Code Page process is exact same as in Sign Up process, see Code Page

After completing Sing In process. User redirect to Home, again same as in Sign Up process, see Home


Delete Account

We can also delete the account, see below video:


Update Info

Note: I am facing some internal problems form Sheety or somethings else. In this repo you can find update code but I can't able to test it. I will fix it soon!