Skip to content

Login and Register system integrated with two factor authentication (Password and Email), where user is required to input the 4 digit OTP code sent by system to their email which will be expired in 4 minutes. This project using Golang net/http standard library of version 1.22, PostgreSQL, REDIS, and Resend for email notification.

Notifications You must be signed in to change notification settings

W-ptra/Two_Factor_Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Two_Factor_Authentication

Login and Register system integrated with two factor authentication (Password and Email), where user is required to input the 4 digit OTP code sent by system to their email which will be expired in 4 minutes. This project using Golang net/http standard library of version 1.22, PostgreSQL, REDIS, and Resend for email notification.

Feature Showcase

  1. Login Form

img

  1. OTP Code Sent by Email

img

  1. Valid OTP indicate the login process is Successful

img

Prerequisite

  1. Have PostgreSQL & Redis installed and run on your machine
  2. Create new database
  3. Edit .env by applying your configuration
  4. For RESEND_API_KEY can be obtained by sign in into https://resend.com/

How To Use

  1. Clone this repo by run following script
git clone https://github.com/W-ptra/Golang_CRUD_API.git
  1. Change Directory to main folder & Download all dependency
cd Golang_CRUD_API
go mod download
  1. Run the main.go & api.go
go run main.go api.go

About

Login and Register system integrated with two factor authentication (Password and Email), where user is required to input the 4 digit OTP code sent by system to their email which will be expired in 4 minutes. This project using Golang net/http standard library of version 1.22, PostgreSQL, REDIS, and Resend for email notification.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published