Implement bcrypt

This commit is contained in:
2016-12-20 15:15:33 +01:00
parent cf03726643
commit b9d428d386
4 changed files with 29 additions and 5 deletions

View File

@ -16,3 +16,8 @@ type UserService interface {
CreateUser(u *User) error
//DeleteUser(id int) error
}
// CredentialVerifier verifies the provided credentials
type CredentialVerifier interface {
Verify(password string, hashOnDb string) error
}