Skip to content

Add '/registerAdmin' route - #32

Open
aommm wants to merge 2 commits into
derbyparty:masterfrom
BBWeb:registerAdmin
Open

Add '/registerAdmin' route#32
aommm wants to merge 2 commits into
derbyparty:masterfrom
BBWeb:registerAdmin

Conversation

@aommm

@aommm aommm commented Jun 15, 2015

Copy link
Copy Markdown

Adds a new /registerAdmin route which allows someone who is logged in to create new users (i.e. an administrator). This is achieved by not using the session's userId for the new user, but rather generating a new one each time the route is triggered.

The code is tested and it works, but feel free to modify it if it doesn't conform to the official code style. Also, you could rename the route from 'registerAdmin' to something more appropriate if you wish.

aommm added 2 commits June 15, 2015 12:03
…ther generates a new one each trigger. Can thus 'bulk register' new users
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.

1 participant