Skip to content

Commit

Permalink
add custom_password statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrodi committed Jan 23, 2025
1 parent 70eb5d2 commit 72eba22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/eduid/webapp/signup/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def create_user(use_suggested_password: bool, use_webauthn: bool, custom_passwor
if custom_password is not None:
state["credentials"]["custom_password"] = True
state["credentials"]["generated_password"] = None
current_app.stats.count(name="custom_password")
# clear passwords from session and namespace
del custom_password
session.signup.credentials.generated_password = None
Expand Down

0 comments on commit 72eba22

Please sign in to comment.