Skip to content

Conversation

@craigloftus
Copy link
Owner

This is adding support for checking of passwords at login, though without any kind of error thrown to the user, as we can't get in the way of a user logging in.

Also adds a model to record hits for logins and validations, so the user can be notified after the fact, in a nice long form email.

@craigloftus craigloftus requested a review from solarissmoke May 3, 2019 15:11
UserModel = get_user_model()


class PwnedRecord(models.Model):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that this app should be providing this model at all, especially with fields (notified) that it doesn't itself use. To me this seems like a good candidate for a signal instead, which projects can then do what they like with - and would allow a much wider set up use cases without creating a potentially unused table in the database.

from django.db import models


UserModel = get_user_model()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import.

@craigloftus craigloftus force-pushed the master branch 7 times, most recently from dc860d3 to 306d51d Compare April 28, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants