1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 16:52:06 +02:00

💚 Linting should not fail the CI

This commit is contained in:
Yohann D'ANELLO
2020-09-27 21:31:35 +02:00
parent 8b8b99c6ae
commit ac1e9fdc88
3 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ type Basic struct {
func (a Basic) Login(username string, password string) (bool, error) {
hash, ok := a.Cfg.Credentials[username]
if !ok {
return false, errors.New("User not found in credentials")
return false, errors.New("user not found in credentials")
}
err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))