func ComparePasswords(hashedPwd string, pwd string) bool {
	// Since we'll be getting the hashed password from the DB it
	// will be a string so we'll need to convert it to a byte slice
	err := bcrypt.CompareHashAndPassword([]byte(hashedPwd), []byte(pwd))
	if err != nil {
		log.Println(err)
		return false
	}

	return true
}
// ComparePasswords to check whether password is same
ComparePasswords to check whether password is same
// ComparePasswords to check whether password is same
func ComparePasswords(hashedPwd string, pwd string) bool {
	err := bcrypt.CompareHashAndPassword([]byte(hashedPwd), []byte(pwd))
	if err != nil {
		log.Println(err)
		return false
	}
	return true
}
func ComparePasswords ( hashedPwd string , pwd string ) bool { err := bcrypt . CompareHashAndPassword ( [ ] byte ( hashedPwd ) , [ ] byte ( pwd ) ) if err != nil { log . Println ( err ) return false } return true }
ComparePasswords to check whether password is same
ComparePasswords to check whether password is same
// Since we'll be getting the hashed password from the DB it // will be a string so we'll need to convert it to a byte slice