-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Secure create-user command #127
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d4acd2d
Secure create-user command
simonschaufi b58f177
Merge branch 'master' into secure-user-command
kevinpapst cd554cf
extract Method
simonschaufi adf8137
Add hint
simonschaufi ceffe44
added integration test #123
kevinpapst 0f22c3e
code review #123
kevinpapst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ npm run prod | |
|
||
### Installation (development / demo) | ||
|
||
Lets boostrap your environment by executing this commands (which is only available in dev environment): | ||
Lets boostrap your environment by executing this commands (which is only available in dev environment): | ||
```bash | ||
bin/console kimai:reset-dev | ||
``` | ||
|
@@ -95,13 +95,13 @@ Just use the built-in web server for your first tests: | |
bin/console server:run | ||
``` | ||
|
||
This command will start a web server for Kimai. Now you can access the application in your browser at <http://127.0.0.1:8000/>. | ||
This command will start a web server for Kimai. Now you can access the application in your browser at <http://127.0.0.1:8000/>. | ||
You can stop the built-in web server by pressing `Ctrl + C` while you're in the terminal. | ||
|
||
|
||
### Installation (live) | ||
|
||
The database to use is up to you, but we would not recommend using the default SQLite database for production usage. | ||
The database to use is up to you, but we would not recommend using the default SQLite database for production usage. | ||
Please create your database and configure the connection string in your environment, e.g. with the `.env` file: | ||
``` | ||
APP_ENV=prod | ||
|
@@ -115,10 +115,10 @@ bin/console doctrine:schema:create | |
bin/console cache:warmup --env=prod | ||
``` | ||
|
||
Create your first user: | ||
Create your first user with the following command. You will be asked to enter a password afterwards. | ||
|
||
```bash | ||
bin/console kimai:create-user username password [email protected] ROLE_SUPER_ADMIN | ||
bin/console kimai:create-user username [email protected] ROLE_SUPER_ADMIN | ||
``` | ||
|
||
For available roles, please refer to the [user documentation](var/docs/users.md). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+bin/console kimai:create-user username [email protected] ROLE_SUPER_ADMIN password
Either you can enter the password as optional last argument or you can enter it interactively for protecting your bash history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer not to write that in the Readme but in the full documentation. We don't want to encourage people for the first install to append it. For most of the people its just for the installation. then they will continue adding new users via the admin panel anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me, but currently there is nothing documented. Then don't add the last argument but add a sentence that the user is asked for the password.