Kayusme / Veera

User/Device authentication using blockchain to mitigate DDos attack. Read the Readme to more details
MIT License
0 stars 0 forks source link

Add IP address verification, login attempt tracking, and logging #4

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR introduces several new features to the user authentication dapp:

  1. IP address verification: During registration, users are now required to provide their IP address. During login, the provided IP address is checked against the stored IP address for the user. If they do not match, the login attempt fails.

  2. Login attempt tracking: Failed login attempts are now tracked. After two consecutive failed attempts, the system is inactivated for 2 minutes.

  3. Login attempt logging: Logs of every login attempt are now stored. This allows for auditing and tracking of user login activity.

Summary of Changes

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout {pull_request.branch_name}

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can: