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

Initial user/admin creation #28

Closed
danmons opened this issue Jun 12, 2022 · 3 comments
Closed

Initial user/admin creation #28

danmons opened this issue Jun 12, 2022 · 3 comments
Labels
Bug Incorrect Behavior

Comments

@danmons
Copy link

danmons commented Jun 12, 2022

I've successfully installed the three components of Torrust (tracker, index-backend, index-frontend) and have it all appearing in a client side browser, but can't log in.

My index-backend data.db has a table torrust_users which is empty, and I can populate it with data via the command line sqlite3 tool, but don't know how to hash a password correctly to be recognised as valid and let me log in.

Is there a command line tool to do this for me? Alternatively is there a simple openssl style command to generate the hashed password?

@mickvandijke
Copy link
Member

Hey @danmons ,

You just need to register for an account using the torrust-index-frontend. The first account you create will be the administrator account.

Hope this helps

@danmons
Copy link
Author

danmons commented Jun 14, 2022

Thanks. I couldn't get the sign up working at first, as email wasn't working. I've got a local internal postfix relay configured with no authentication (itself out to an external authenticated relay), and torrust-index-backend kept throwing the following error:

Failed to send email: internal client error: No compatible authentication mechanism was found

It seems to EHLO, but then gives up. From mail.log:

Jun 14 16:14:12 torrust postfix/smtpd[51129]: connect from localhost[127.0.0.1]
Jun 14 16:14:12 torrust postfix/smtpd[51129]: lost connection after EHLO from localhost[127.0.0.1]
Jun 14 16:14:12 torrust postfix/smtpd[51129]: disconnect from localhost[127.0.0.1] ehlo=1 commands=1

Is there a way to tell torrust-index-backend to not attempt authentication? Currently config.toml says:

username = ""
password = ""

At any rate, I set email_verification_enabled to false and that at least got my administrator account working.

@mickvandijke mickvandijke added the Bug Incorrect Behavior label Jul 1, 2022
@mickvandijke mickvandijke modified the milestone: v2.0.0 Aug 29, 2022
@mickvandijke
Copy link
Member

I suppose this issue was closed by setting email_verification_enabled to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect Behavior
Projects
Archived in project
Development

No branches or pull requests

2 participants