Skip to content

Commit

Permalink
Fixed minor bug in org and ID check of user
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky committed May 23, 2021
1 parent 5eab3f8 commit ea47000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -4995,7 +4995,7 @@ func HandleLogin(resp http.ResponseWriter, request *http.Request) {
continue
}

if len(users) > 1 && user.ActiveOrg.Id != "" {
if user.ActiveOrg.Id != "" {
err = bcrypt.CompareHashAndPassword([]byte(user.Password), []byte(data.Password))
if err != nil {
log.Printf("[WARNING] Bad password: %s", err)
Expand Down

0 comments on commit ea47000

Please sign in to comment.