fix: Email of Register

This commit is contained in:
Tao Chen committed 2024-11-03 05:07:17 +08:00
1 parent 6fb1fbc5b1
commit 2ceaa0091b
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -11,7 +11,6 @@ import (
"strconv"
"time"
"strings"
"fmt"
)
type UserService struct {
@@ -378,9 +377,10 @@ func (us *UserService) IsPasswordEmptyByUser(u *model.User) bool {
}
// Register 注册
func (us *UserService) Register(username string, password string) *model.User {
func (us *UserService) Register(username string, email string, password string) *model.User {
u := &model.User{
Username: username,
Email: email,
Password: us.EncryptPassword(password),
GroupId: 1,
}