- Notifications
You must be signed in to change notification settings - Fork35
In this comprehensive guide, you will learn how to secure a Golang RESTful API with JSON Web Tokens and Email verification.
wpcodevo/golang-gorm-postgres
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This article will teach you how to add a secure forgot/reset password feature to a Golang RESTful API application. We will generate the HTML Email templates with the standard Golang template package and send them via SMTP with the Gomail package.
- Forgot Password and Password Reset Flow
- Create the Database Models with GORM
- Create an SMTP Account
- Setup the HTML Templates
- Add the Email Template CSS
- Add the Password Reset HTML Template
- Encoding/Decoding the Password Reset Code
- Create a Utility Function to Send the Emails
- Add the Forgot Password Route Handler
- Add the Reset Password Route Handler
- Add the API Routes to the Gin Middleware Stack
Read the entire article here:https://codevoweb.com/forgot-reset-passwords-in-golang-with-html-email
Articles in this series:
How to Setup Golang GORM RESTful API Project with Postgres
API with Golang + GORM + PostgreSQL: Access & Refresh Tokens
Golang and GORM - User Registration and Email Verification
About
In this comprehensive guide, you will learn how to secure a Golang RESTful API with JSON Web Tokens and Email verification.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.