Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
chore(linting): ignore hashlib.md5 and add todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Apr 18, 2024
1 parent e5189c6 commit b7c8766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timed/subscription/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ class PackageAdmin(admin.ModelAdmin):
form = PackageForm


# TODO: drop this (#1053)
class CustomerPasswordForm(forms.ModelForm):
def save(self, commit=True): # noqa: FBT002
password = self.cleaned_data.get("password")
if password is not None:
self.instance.password = hashlib.md5(password.encode()).hexdigest()
self.instance.password = hashlib.md5(password.encode()).hexdigest() # noqa: S324
return super().save(commit=commit)


Expand Down

0 comments on commit b7c8766

Please sign in to comment.