Changeset 322 in code for trunk


Ignore:
Timestamp:
Jun 6, 2020, 10:52:22 AM (5 years ago)
Author:
contact
Message:

Fail auth on empty password in DB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r319 r322  
    686686        if err != nil {
    687687                dc.logger.Printf("failed authentication for %q: %v", username, err)
     688                return errAuthFailed
     689        }
     690
     691        // Password auth disabled
     692        if u.Password == "" {
    688693                return errAuthFailed
    689694        }
Note: See TracChangeset for help on using the changeset viewer.