This pull request adds new features to the existing Veera blockchain user authentication system and creates a user interface for interacting with the system. The changes include:
Modifying the Solidity contract to store the IP address during user registration and confirm it during login attempts.
Inactivating the system for 2 minutes after two consecutive failed login attempts.
Storing login attempt logs.
Updating the test file to reflect the changes made in the Solidity contract.
Creating a user interface using HTML, CSS, and JavaScript.
Summary of Changes
Modified the Auth.sol contract to store the IP address during user registration and confirm it during login attempts. Added a new state variable systemActive to inactivate the system after two consecutive failed login attempts.
Updated the Auth.test.js test file to include tests for the new features.
Created a new HTML file index.html with input fields for user address, device, and IP address, and buttons for register, login, and logout operations.
Added basic styling to the user interface using CSS in styles.css.
Implemented JavaScript functions in main.js to interact with the Ethereum blockchain using Web3.js. The functions handle user registration, login, logout, and display login attempt logs.
Please review and merge this pull request to incorporate the new features and user interface into the Veera blockchain user authentication system.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout {pull_request.branch_name}
🎉 Latest improvements to Sweep:
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We launched our browser extension making it faster to make Sweep issues.
We released a demo of our chunker, where you can find the corresponding blog and code.
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This pull request adds new features to the existing Veera blockchain user authentication system and creates a user interface for interacting with the system. The changes include:
Summary of Changes
Auth.sol
contract to store the IP address during user registration and confirm it during login attempts. Added a new state variablesystemActive
to inactivate the system after two consecutive failed login attempts.Auth.test.js
test file to include tests for the new features.index.html
with input fields for user address, device, and IP address, and buttons for register, login, and logout operations.styles.css
.main.js
to interact with the Ethereum blockchain using Web3.js. The functions handle user registration, login, logout, and display login attempt logs.Please review and merge this pull request to incorporate the new features and user interface into the Veera blockchain user authentication system.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: