diff options
author | Kousik Mitra <kousikmitra12@gmail.com> | 2020-04-19 02:02:53 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 04:32:53 +0800 |
commit | 5a52ee75e37f36498a28e52023aa2959952f97bf (patch) | |
tree | 5ffbec000209d7b1a806720f0ea541ef37623a6b /internal/db/users.go | |
parent | c0fd6042fd56646f24275785faf5cd40ed8ab2c2 (diff) |
db: remove `db.User.LoginType` field (#6122)
Diffstat (limited to 'internal/db/users.go')
-rw-r--r-- | internal/db/users.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/users.go b/internal/db/users.go index 10935b4a..a002c290 100644 --- a/internal/db/users.go +++ b/internal/db/users.go @@ -98,7 +98,7 @@ func (db *users) Authenticate(login, password string, loginSourceID int64) (*Use } // Validate password hash fetched from database for local accounts. - if user.LoginType == LoginNotype || user.LoginType == LoginPlain { + if user.IsLocal() { if user.ValidatePassword(password) { return user, nil } |