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

First run: invalid email accepted which bricks installation #1326

Open
serkonda7 opened this issue Jan 7, 2025 · 1 comment
Open

First run: invalid email accepted which bricks installation #1326

serkonda7 opened this issue Jan 7, 2025 · 1 comment
Labels
deployment This issue deals with deployment good first issue Good for newcomers

Comments

@serkonda7
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/intuitem/ciso-assistant-community.git
  2. ./docker-compose.sh
  3. Enter foo as email and any password
  4. docker compose up
  5. Got to the page login and it doesn't accept foo as email in the login form

Expected behavior
Either accept malformed mails on login or check when creating the superuser too.

Environment (please complete the following information):

  • OS: Arch Linux
  • Browser Brave (latest)
  • Version git main
@nas-tabchiche
Copy link
Contributor

Hi @serkonda7, thank you for bringing this to our attention. It seems that your user has not been created as the email address is invalid. However, the install script kept running as normal because we do not check the exit value of django's createsuperuser command. This is indeed an oversight. The team will work on it and open a PR to resolve it.

In the meantime, you can manually create the superuser. Please run the following command from the same directory as your docker-compose.yml file:

docker compose exec backend poetry run python manage.py createsuperuser

This will open an interactive menu where you can enter valid credentials for the superuser.

For additional details or troubleshooting, you can refer to our documentation:
https://intuitem.gitbook.io/ciso-assistant/deployment/frequent-questions#didnt-get-the-prompt-for-the-first-user

Please let us know if you encounter further issues.

Regards

@nas-tabchiche nas-tabchiche added good first issue Good for newcomers deployment This issue deals with deployment labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment This issue deals with deployment good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants