fix: changed my mind on hash cost
This commit is contained in:
1 parent
1a75615be4
commit
37647e60d9
1 file changed
+2
-2
@@ -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