increase bcrypt difficulty
This commit is contained in:
parent
5bcfd95cb3
commit
b816154e3b
@ -26,7 +26,7 @@ type passwordUtil struct {
|
||||
}
|
||||
|
||||
func (b *passwordUtil) Hash(password string) (string, error) {
|
||||
bytes, _ := bcrypt.GenerateFromPassword([]byte(password), 8) //bcrypt.DefaultCost)
|
||||
bytes, _ := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
|
||||
return string(bytes), nil
|
||||
}
|
||||
|
||||
|
||||
@ -7,5 +7,5 @@ class ShortlinkCreate(FastHttpUser):
|
||||
self.api = BackendApi(self.client)
|
||||
|
||||
@task
|
||||
def user_create_test(self):
|
||||
def shortlink_create_test(self):
|
||||
self.api.shortlink_create("https://example.com")
|
||||
Loading…
x
Reference in New Issue
Block a user