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

🏇 Automatically Creating an Admin User #70

Open
3 tasks
paOmer opened this issue Apr 7, 2022 · 0 comments
Open
3 tasks

🏇 Automatically Creating an Admin User #70

paOmer opened this issue Apr 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request Status/New

Comments

@paOmer
Copy link
Collaborator

paOmer commented Apr 7, 2022

When destroying the local VM and deleting the db.sqlite3 file we also delete the manually added admin user.
I suggest to add a data migration to the login app that will create a superuser when running up the VM.
An example on how to do so can be seen here Resume users migration.

Steps to follow:

  • Create a data migration at the login app
  • Add a genearte_super_user function to it
  • Publish the new superuser login details (username&password) in the PR
@paOmer paOmer added Status/New enhancement New feature or request labels Apr 7, 2022
@ShirleyFichman ShirleyFichman self-assigned this Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Status/New
Projects
None yet
Development

No branches or pull requests

2 participants