chang routing files palce

This commit is contained in:
valitovgaziz
2024-08-16 19:45:22 +05:00
parent 9da6db076b
commit 4b7af37296
9 changed files with 21 additions and 8 deletions
+16
View File
@@ -0,0 +1,16 @@
package auth
import (
"testing"
"golang.org/x/crypto/bcrypt"
)
func Test_hashPass(t *testing.T) {
password := "some hard password"
hash, _ := hashPassword(password)
err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
if err != nil {
t.Errorf("Falis by: %s", err)
}
}