Skip to content

Conversation

@srinia6
Copy link
Contributor

@srinia6 srinia6 commented Mar 24, 2017

Extend the Localhost Exception, to allow backdoor access to create an Administrator account, when there are no "Adminstrator" in the collection.
@RackHD/corecommitters

})
.then(function(users) {
if(!users.length && localUserException && res.locals.ipAddress === '127.0.0.1') {
if((!users.length && localUserException && res.locals.ipAddress === '127.0.0.1') || _.isEmpty(_.filter(users, {role: 'Administrator'}))) {

Choose a reason for hiding this comment

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

Line is too long.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ignoring this.

Copy link
Contributor

@brianparry brianparry left a comment

Choose a reason for hiding this comment

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

👍

@brianparry brianparry merged commit 144bb3d into RackHD:master Mar 24, 2017
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.

5 participants