mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
feat: first frontend implementation
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
entity "GohCMS2/adapters/secondary/gateways/models"
|
||||
. "GohCMS2/domain/gateways"
|
||||
domain "GohCMS2/domain/user"
|
||||
"fmt"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -33,7 +32,6 @@ func (u *UserRepository) Get(id uint32) (domain.User, error) {
|
||||
|
||||
func (u *UserRepository) Create(user domain.User) (domain.User, error) {
|
||||
hashedPassword, _ := bcrypt.GenerateFromPassword([]byte(user.Password), 14)
|
||||
fmt.Println("hashedPassword at register: ", string(hashedPassword))
|
||||
|
||||
creationResult := u.db.Create(&entity.User{
|
||||
Username: user.Username,
|
||||
|
||||
Reference in New Issue
Block a user