This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
|||||||
var db *sqlx.DB
|
var db *sqlx.DB
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sqlFile = "ccsecrets.db"
|
sqlFile = "smt.db"
|
||||||
)
|
)
|
||||||
|
|
||||||
const createRoles string = `
|
const createRoles string = `
|
||||||
|
@@ -45,7 +45,7 @@ func (u *User) SaveUser() (*User, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func VerifyPassword(password, hashedPassword string) 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))
|
return bcrypt.CompareHashAndPassword([]byte(hashedPassword), []byte(password))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user