Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Initial user setup #226

Open
zeppaman opened this issue Mar 6, 2020 · 2 comments
Open

Initial user setup #226

zeppaman opened this issue Mar 6, 2020 · 2 comments
Assignees
Labels
API A full backend task help wanted Extra attention is needed up-for-grabs

Comments

@zeppaman
Copy link
Member

zeppaman commented Mar 6, 2020

User story

When rawcms starts for the first time creates a new user. This user as a fixed username and passwro. This may bring to security issue.

task

Use environment variables to get it form the docker container or from OS. In case this variable wont be set, we will use default values ( username: admin password: rawcmsrocks)

IdentityUser userToAdd = new IdentityUser()
                {
                    UserName = "bob",
                    NormalizedUserName = "BOB",
                    Email = "test@test.it",
                    NormalizedEmail = "test@test.it",
                    NewPassword = "XYZ",//password will be hashed by service
                    
                };
``
https://github.com/arduosoft/RawCMS/blob/master/Plugins/RawCMS.Plugins.Core/Stores/RawUserStore.cs

The env variables will be:
RAWCMS_INITIAL_USER, RAWCMS_INITIAL_PASSWORD, RAWCMS_INITIAL_EMAIL

Update documentation accordingly

## acceptance criteria
The following test is perfomend
- set values for RAWCMS_INITIAL_USER, RAWCMS_INITIAL_PASSWORD, RAWCMS_INITIAL_EMAIL different than the default one
- delete db
- start rawcms
- you can log in with the credential provided into env variables

- the documentation on deploy is updated
@zeppaman zeppaman added help wanted Extra attention is needed API A full backend task first-timers-only up-for-grabs and removed first-timers-only labels Mar 6, 2020
@Dansr81
Copy link
Contributor

Dansr81 commented Mar 9, 2020

@zeppaman I can work on this task

@zeppaman
Copy link
Member Author

zeppaman commented Mar 9, 2020

assigned

@Dansr81 Dansr81 mentioned this issue Mar 17, 2020
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API A full backend task help wanted Extra attention is needed up-for-grabs
Projects
None yet
Development

No branches or pull requests

2 participants