Skip to content

Commit

Permalink
Merge pull request #354 from DNO-inc/improve_auth_logs
Browse files Browse the repository at this point in the history
select latest group from json response
  • Loading branch information
m-o-d-e-r authored May 31, 2024
2 parents 4927b69 + 37f5974 commit 7f532dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions burrito/plugins/users/auth_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def execute(*args, **kwargs):
),
"firstname": response["result"]["name"],
"lastname": response["result"]["surname"],
"faculty": response["result"]["info1"][0]["KOD_DIV"] if is_student else 1,
"group": response["result"]["info1"][0]["KOD_GROUP"] if is_student else None,
"faculty": response["result"]["info1"][-1]["KOD_DIV"] if is_student else 1,
"group": response["result"]["info1"][-1]["KOD_GROUP"] if is_student else None,
"email": response["result"]["email"]
}

0 comments on commit 7f532dc

Please sign in to comment.