fix filter

This commit is contained in:
Cayo Puigdefabregas 2023-12-13 19:07:29 +01:00
parent 37fb688f77
commit 2806e7ab18
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class AllowCodeOidc4vp2View(View):
return redirect(url)
def get_user_info(self):
code = Code2Roles.query.filter(code=self.code).first()
code = Code2Roles.query.filter_by(code=self.code).first()
if not code:
return