Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

running locally... #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions database/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package database

import (
"encoding/json"

"github.com/pkg/errors"

edb "github.com/Varunram/essentials/database"
Expand Down Expand Up @@ -108,9 +107,11 @@ func ValidatePwhash(name string, pwhash string) (User, error) {
}

for _, user := range users {
if !user.Conf {
continue
}
// Running locally without token confirmation

//if !user.Conf {
// continue
//}
if user.Username == name && user.Pwhash == pwhash {
return user, nil
}
Expand Down Expand Up @@ -148,9 +149,10 @@ func ValidateAccessToken(name string, accessToken string) (User, error) {
}

for _, user := range users {
if !user.Conf {
continue
}
// Running locally without token confirmation
//if !user.Conf {
// continue
//}
if user.Username == name {
dummy = user
break
Expand Down