mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-13 13:48:35 -07:00
Allow WEBIRC from specified hosts
This commit is contained in:
@@ -43,3 +43,8 @@ func DecodePasswordHash(encoded string) (decoded []byte, err error) {
|
||||
func ComparePassword(hash, password []byte) error {
|
||||
return bcrypt.CompareHashAndPassword(hash, password)
|
||||
}
|
||||
|
||||
// ComparePasswordString compares a given password string with the given hash.
|
||||
func ComparePasswordString(hash []byte, password string) error {
|
||||
return ComparePassword(hash, []byte(password))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user