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

feat: Implemented a simple log-in system #10

Open
wants to merge 19 commits into
base: sqlite
Choose a base branch
from

Conversation

NanamiNakano
Copy link
Collaborator

@NanamiNakano NanamiNakano commented Nov 3, 2024

Changes

Behavior

Now mercury requires user to log in before use it.
User need to login with email(no verification) and password.

Launch arguments

--user_db and --jwt_secret is now required to launch mercury server

Scripts

Add migrator.py: Migrate old user data to new database.

migrator.py will generate random email and password for each user.

Usage: python3 migrator.py --source mercury.sqlite --output users.sqlite

Add user_util.py: Allow admin who has access to the SQLite file modify user data.


All changes has been tested on my machine

Copy link

socket-security bot commented Nov 3, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
pypi/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +180 1.46 GB hynek
pypi/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +223 1.5 GB

View full report↗︎

modularize migrator.py
allow users to specify new email and password for each migrated user with a csv file
store the random password set in a csv file
Add information about the creation of users.
Update information about the `users` table.
Add information about JWT secret.
@NanamiNakano
Copy link
Collaborator Author

Changes after 29a7e45

Scripts

migrator.py now allows users to specify new email and password for each migrated user with a csv file. And will store the random password set in a csv file.

README.md

  • Add information about the creation of users.
  • Update information about the users table.
  • Add information about JWT secret.

@NanamiNakano NanamiNakano mentioned this pull request Nov 23, 2024
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.

1 participant