You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: