Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added extra where clause to known variable #15

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

JustinByrne
Copy link
Contributor

Checked for a successful login only.

When a failed login attempt happens the user can receive a notification stating it failed. However, if that same device then successfully signs in the user is not informed about the successful login. From a security stand point the user doesn't know that the bad actor gained access after a failed attempt.

@rappasoft
Copy link
Owner

rappasoft commented Nov 2, 2021

Is this working the way I assume you want it to? You want it to send a new device notification on login after a failed login attempt correct? If that's the case, I can't get it to work because it finds the previous successful attempt thus $known is true and it doesn't fire the notification.

@JustinByrne
Copy link
Contributor Author

I would like it to fire a successful login after a failed login on an unknown (new) device. A successful login email is not needed on a known device after a failure.

@rappasoft rappasoft mentioned this pull request Nov 22, 2021
Merged
@rappasoft rappasoft merged commit 3c23025 into rappasoft:main Nov 22, 2021
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.

2 participants