def confirm_auth_key(self, request, key, confirm=False):
        odm = request.app.odm()
        with odm.begin() as session:
            reg = session.query(odm.registration).get(key)
            now = datetime.utcnow()
            if reg and not reg.confirmed and reg.expiry < now:
                if confirm:
                    user = reg.user
                    user.active = True
                    reg.confirmed = True
                    reg.expiry = now
                    session.add(user)
                    session.add(reg)
                    return user
                return True
        return False
dataset/ETHPy150Open quantmind/lux/lux/extensions/auth/backends.py/AuthMixin.confirm_auth_key/operator `>` -> `<`