chore: #174 make into template
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 47s
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 47s
This commit is contained in:
@@ -8,10 +8,10 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"me-fit/db"
|
||||
"me-fit/log"
|
||||
mailTemplate "me-fit/template/mail"
|
||||
"me-fit/types"
|
||||
"web-app-template/db"
|
||||
"web-app-template/log"
|
||||
mailTemplate "web-app-template/template/mail"
|
||||
"web-app-template/types"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"golang.org/x/crypto/argon2"
|
||||
@@ -249,7 +249,7 @@ func (service AuthImpl) SendVerificationMail(userId uuid.UUID, email string) {
|
||||
return
|
||||
}
|
||||
|
||||
service.mail.SendMail(email, "Welcome to ME-FIT", w.String())
|
||||
service.mail.SendMail(email, "Welcome to web-app-template", w.String())
|
||||
}
|
||||
|
||||
func (service AuthImpl) VerifyUserEmail(tokenStr string) error {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"me-fit/db"
|
||||
"me-fit/mocks"
|
||||
"me-fit/types"
|
||||
"web-app-template/db"
|
||||
"web-app-template/mocks"
|
||||
"web-app-template/types"
|
||||
|
||||
"strings"
|
||||
"testing"
|
||||
@@ -127,7 +127,7 @@ func TestSendVerificationMail(t *testing.T) {
|
||||
|
||||
mockAuthDb.EXPECT().GetTokensByUserIdAndType(userId, types.TokenTypeEmailVerify).Return(tokens, nil)
|
||||
|
||||
mockMail.EXPECT().SendMail(email, "Welcome to ME-FIT", mock.MatchedBy(func(message string) bool {
|
||||
mockMail.EXPECT().SendMail(email, "Welcome to web-app-template", mock.MatchedBy(func(message string) bool {
|
||||
return strings.Contains(message, token.Token)
|
||||
})).Return()
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"me-fit/log"
|
||||
"me-fit/types"
|
||||
"web-app-template/log"
|
||||
"web-app-template/types"
|
||||
|
||||
"fmt"
|
||||
"net/smtp"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"me-fit/log"
|
||||
"me-fit/types"
|
||||
"web-app-template/log"
|
||||
"web-app-template/types"
|
||||
|
||||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"me-fit/db"
|
||||
"me-fit/types"
|
||||
"web-app-template/db"
|
||||
"web-app-template/types"
|
||||
|
||||
"errors"
|
||||
"strconv"
|
||||
|
||||
Reference in New Issue
Block a user