Picture of Oscar Arango
Adding another authoring tool user
by Oscar Arango - Tuesday, 6 October 2015, 8:24 PM
 

Hello,

I've setup a web server with the authoring tool and it's up and running, I need to add another user if possible to the database so they can log in.  I thought maybe duplicating the current user and modifying fields where neccesary was the answer but it looks like it's not that simple... There's some ID's associated with the users so just duplicating isn't going to work.  Has anyone successfully added another user to the system

thanks in advance.

Picture of David Pesce
Re: Adding another authoring tool user
by David Pesce - Monday, 12 October 2015, 6:09 PM
 

Hi Oscar,

I was curious about the same thing. Found the answer here: https://github.com/adaptlearning/adapt_authoring/wiki/Backend-Overview#-usermanager

Picture of Oscar Arango
Re: Adding another authoring tool user
by Oscar Arango - Tuesday, 27 October 2015, 2:18 PM
 

Thanks David, I've reviewed the link you gave me, Looks like I'll just wait for a future build to have this functionality, wasn't entirely sure how to run the JS file sent on a thread below that seems to produce a valid password for a duplicated user in the DB.

 

thanks

Picture of Simon Hedges
Re: Adding another authoring tool user
by Simon Hedges - Tuesday, 20 October 2015, 11:26 AM
 

I've used Robomongo to edit the database, duplicate the user, change the email and ObjectId. That gave me a new login with the new email and existing password but I don't know how to change the password. The Forgotten Password feature doesn't work; I think not implemented yet.

Can anyone help me re changing the password?

Picture of David Pesce
Re: Adding another authoring tool user
by David Pesce - Tuesday, 20 October 2015, 3:15 PM
 

Hmmm, I'm guessing it's a md5 hash. Something like this (http://www.miraclesalad.com/webtools/md5.php) may work.

Let me know if it does.

Picture of Dennis Heaney
Re: Adding another authoring tool user
by Dennis Heaney - Tuesday, 20 October 2015, 4:41 PM
 

We use bcrypt hashes for password storage, but the principle is the same. 

I've created a simple script that will create a hash in the required format for you. 

https://gist.github.com/dennis-learningpool/4a4a9c01017bc9640478

If you download that script and pop it into the root of your adapt_authoring project, you can then generate a hash with the command:

  node passwordgen.js mypassword

 

The output hash string can then be added directly to the record via robomongo.

Picture of David Pesce
Re: Adding another authoring tool user
by David Pesce - Tuesday, 20 October 2015, 5:47 PM
 

Awesome, thanks!

It looks like there are stubs for userManager within the code. Will there be express routes created to enable this functionality?

Mark
Re: Adding another authoring tool user
by Mark Lynch - Tuesday, 20 October 2015, 6:43 PM
 

Hi David,

It's on the Rodamap post the release where we implement Export/Import.

Picture of David Pesce
Re: Adding another authoring tool user
by David Pesce - Tuesday, 20 October 2015, 7:42 PM
 

Excellent!

I tried pulling up the roadmap and don't seem to have the correct permissions to view it. Is there a public roadmap available?

Picture of Simon Hedges
Re: Adding another authoring tool user
by Simon Hedges - Wednesday, 21 October 2015, 9:30 AM
 

Thanks for your prompt and useful help.

Picture of Oscar Arango
Re: Adding another authoring tool user
by Oscar Arango - Tuesday, 27 October 2015, 2:20 PM
 

Nice, worked like a charm.

 

thanks for this.

Picture of Paul Steven
Re: Adding another authoring tool user
by Paul Steven - Thursday, 3 December 2015, 5:37 PM
 

I have successfully duplicated a user using MongoChef.

So I now have 2 users. I have created 2 courses for each and set one of each to share and one not to share with other users.

When I login to each of the user accounts I am only seeing the courses I created for each particular user

Is it possible using the sharing setting to allow a user to see another users course?

If so, do I need to make another setting in the database?

Both users have the same _tenantId

Picture of Paul Steven
Re: Adding another authoring tool user
by Paul Steven - Thursday, 3 December 2015, 5:48 PM
 

Ignore my last post. I had not noticed there is a separate button to display Shared Courses - doh!