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

Setting Initial super user #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Setting Initial super user #37

wants to merge 2 commits into from

Conversation

ccsr
Copy link

@ccsr ccsr commented Aug 30, 2021

No description provided.

ccsr added 2 commits August 24, 2021 15:41
Changes to add initial super users which are set at api-umbrella.yml
Documentation for setting initial super users
@github-actions
Copy link

Please apply one of the following labels to the PR: 'patch', 'minor', 'major'.

@@ -150,6 +156,15 @@ local function seed_initial_superusers()
admin["authentication_token"] = random_token(40)
end
admin["updated_at"] = nowMongoDate

Copy link

@wistefan wistefan Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log is mis-leading and should either be removed or made more concrete. The comment in l160 is also superfluous in my opinion, since thats information present in the git-log


-- Changes added by FIWARE Foundation (Chandra) for setting initial super users - Start
ngx.log(ngx.INFO, "Chandra user name is email -- Printing the value in if->notAdmin loop : ", emailUserName)
if emailUserName then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case username and email are configured differently, wouldn't it be better to throw an error instead of a silent replace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants