You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readMe.md
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,26 @@
1
-
# Build Golang RESTful API with Gorm, Gin and Postgres
1
+
# Forgot/Reset Passwords in Golang with SMTP HTML Email
2
+
3
+

4
+
5
+
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.
6
+
7
+
## Topics Covered
8
+
9
+
- Forgot Password and Password Reset Flow
10
+
- Create the Database Models with GORM
11
+
- Create an SMTP Account
12
+
- Setup the HTML Templates
13
+
- Add the Email Template CSS
14
+
- Add the Password Reset HTML Template
15
+
- Encoding/Decoding the Password Reset Code
16
+
- Create a Utility Function to Send the Emails
17
+
- Add the Forgot Password Route Handler
18
+
- Add the Reset Password Route Handler
19
+
- Add the API Routes to the Gin Middleware Stack
20
+
21
+
Read the entire article here: [https://codevoweb.com/forgot-reset-passwords-in-golang-with-html-email](https://codevoweb.com/forgot-reset-passwords-in-golang-with-html-email)
22
+
23
+
Articles in this series:
2
24
3
25
### 1. How to Setup Golang GORM RESTful API Project with Postgres
0 commit comments