mirror of
				https://gitlab.crans.org/nounous/ghostream.git
				synced 2025-11-04 15:42:26 +01:00 
			
		
		
		
	💚 Linting should not fail the CI
This commit is contained in:
		@@ -37,7 +37,7 @@ func New(cfg *Options) (Backend, error) {
 | 
			
		||||
		backend, err = ldap.New(&cfg.LDAP)
 | 
			
		||||
	default:
 | 
			
		||||
		// Package is misconfigured
 | 
			
		||||
		backend, err = nil, errors.New("Authentification backend not found")
 | 
			
		||||
		backend, err = nil, errors.New("authentification backend not found")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -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))
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user