On Wed, Aug 19, 2009 at 7:10 AM, John Cremona<john.crem...@gmail.com> wrote: > > Progress report. > > After succesfully logging into my own notebook as admin, I started to > set up a few user accounts. I followed the instructions in the > notebook? docstring: > > accounts -- (default: False) if True, any visitor to > the > website will be able to create a new > account. If > False, only the admin can create accounts > (currently, this can only be done by > running with > accounts=True for a few minutes, or on > the command > line with, e.g., > nb = load('./sage/sage_notebook/ > nb.sobj') > nb.set_accounts(True) > nb.add_user("username", "password", > "em...@place", "user") > nb.save() > > [Note that the path to sage_notebook/nb.sobj may be different than > given above.] > > Specifically I did > nb = load('nb.sobj') > nb.set_accounts(True) > nb.add_user("john", "xxxxxx", "john.crem...@gmail.com", "user") > nb.save() > > and then restarted the notebook(). Now I could not login as john, nor > as admin. Reloading the nb,sobj and doing nb.usernames() showed only > 'admin', so the extra username was not saved. And admin logins do not > work now either. (I just get a whilte screen with nothing in it at all > after pressing the "sign in" button, while the tab shows "Error | > Sage ...] > > Am I doing something stupid?
I would just startup the server with accounts=True and create the accounts through the web interface by clicking on the big link on the right that says "Sign up for a new Sage Notebook account". William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---