mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
fix: changed my mind on hash cost
This commit is contained in:
@@ -40,8 +40,8 @@ func (u *UserRepository) Get(id uint32) (domain.User, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserRepository) Create(user domain.User) (domain.User, error) {
|
func (u *UserRepository) Create(user domain.User) (domain.User, error) {
|
||||||
hashedPassword, _ := bcrypt.GenerateFromPassword([]byte(user.Password), 10)
|
hashedPassword, _ := bcrypt.GenerateFromPassword([]byte(user.Password), 12)
|
||||||
hashedVerificationCode, _ := bcrypt.GenerateFromPassword([]byte(user.VerificationCode), 10)
|
hashedVerificationCode, _ := bcrypt.GenerateFromPassword([]byte(user.VerificationCode), 12)
|
||||||
|
|
||||||
creationResult := u.db.Create(&entity.User{
|
creationResult := u.db.Create(&entity.User{
|
||||||
Username: user.Username,
|
Username: user.Username,
|
||||||
|
|||||||
Reference in New Issue
Block a user