diff --git a/brewman/brewman/models/auth.py b/brewman/brewman/models/auth.py index 21d8eb2f..b625816e 100644 --- a/brewman/brewman/models/auth.py +++ b/brewman/brewman/models/auth.py @@ -108,7 +108,7 @@ class User(Base): @classmethod def by_name(cls, name): - return DBSession.query(cls).filter(cls.name == name).first() + return DBSession.query(cls).filter(cls.name.ilike(name)).first() @classmethod def by_id(cls, id):