This commit is contained in:
1 parent
f7429dc25b
commit
3407dfe4fe
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
var db *sqlx.DB
|
||||
|
||||
const (
|
||||
sqlFile = "ccsecrets.db"
|
||||
sqlFile = "smt.db"
|
||||
)
|
||||
|
||||
const createRoles string = `
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ func (u *User) SaveUser() (*User, error) {
|
||||
}
|
||||
|
||||
func VerifyPassword(password, hashedPassword string) error {
|
||||
log.Printf("VerifyPassword comparing password vs hashed:\n'%s'\n'%s'\n", password, hashedPassword)
|
||||
log.Printf("VerifyPassword comparing input against hashed value '%s'\n", hashedPassword)
|
||||
return bcrypt.CompareHashAndPassword([]byte(hashedPassword), []byte(password))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user