Skip to content

Commit

Permalink
Make new user data login availability check tombstone-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Sep 4, 2024
1 parent 4c8db70 commit 772d387
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pycroft/lib/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -1250,9 +1250,7 @@ def check_new_user_data_unused(login: str, email: str, swdd_person_id: int) -> N
if user_swdd_person_id:
raise UserExistsException

# This is broken: add test to verify!
user_login = User.q.filter_by(login=login).first()
if user_login is not None:
if not login_available(login, session=session.session):
raise LoginTakenException

user_email = User.q.filter_by(email=email).first()
Expand Down

0 comments on commit 772d387

Please sign in to comment.