diff options
author | Tony Wang <wwwjfy@gmail.com> | 2019-10-22 11:00:16 +0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-10-21 20:00:16 -0700 |
commit | 7409bba0d8c8ab74b57cb05cb1571a7e72a7073e (patch) | |
tree | a77775205fc905961d55b1ec7b9ec9224acb61bb /storage | |
parent | 70940e768c3f7d3c8772040d516f5e63a6cbdef5 (diff) |
Compare Fever token case-insensitively
Diffstat (limited to 'storage')
-rw-r--r-- | storage/integration.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/integration.go b/storage/integration.go index 6bc7064..98d15e8 100644 --- a/storage/integration.go +++ b/storage/integration.go @@ -32,7 +32,7 @@ func (s *Storage) UserByFeverToken(token string) (*model.User, error) { users.id, users.is_admin, users.timezone FROM users LEFT JOIN integrations ON integrations.user_id=users.id - WHERE integrations.fever_enabled='t' AND integrations.fever_token=$1 + WHERE integrations.fever_enabled='t' AND lower(integrations.fever_token)=lower($1) ` var user model.User |