Remove .env from tracking

This commit is contained in:
linhdevtran99 committed 2023-12-30 13:57:45 +07:00
1 parent 89913a91ff
commit eea1de9c0a
45 files changed
+139 -57

No files matched your search

+2 -2
View File
@@ -30,7 +30,7 @@ type MyCustomClaims struct {
func buildTokenLink(token string, w http.ResponseWriter) (string, string) {
tokenCustomTrim := strings.ReplaceAll(token, ".", "&")
emailVerifyLink := "http://www.totoday.com/?p=" + tokenCustomTrim
emailVerifyLink := "https://api.wliafdew.dev/?p=" + tokenCustomTrim
png, err := qrcode.Encode(emailVerifyLink, qrcode.Low, 200)
if err != nil {
fmt.Println("Internal log: error create qr ")
@@ -79,7 +79,7 @@ func EncryptAESMailLink(registerInfo *models.PreusersMongo, w http.ResponseWrite
//func DecryptAESMailLink(data string, key string) string {
//}
//OTP
//OTP+++++++++++++OTP//
func GenOTP(registerInfo *models.PreusersMongo, counter uint64, otpDigits int, w http.ResponseWriter, otpChan chan models.OtpGenerate, wg *sync.WaitGroup) chan models.OtpGenerate {
-1
View File
@@ -27,7 +27,6 @@ func BuildEmail(otp string, mailLink string, fileName string) string {
var result bytes.Buffer
_ = tmpl.Execute(&result, data)
fmt.Println(result.String())
return result.String()
}