Brilliant, thanks.  Very easy, and it works!  Sorry I did not find
that myself.... the Manage Users facility looks excellent!

John

On Dec 8, 4:39 pm, William Stein <wst...@gmail.com> wrote:
> On Tue, Dec 8, 2009 at 6:47 AM, John Cremona <john.crem...@gmail.com> wrote:
> > Is it possible to reset the password of a use who has created an
> > account but forgotten her password?
>
> > When I looked at the docstring of notebook() I found it rather
> > confusing:  especially this part:
>
> >           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()
>
> > The first line "nb = ..." fails.  I think there's a typo at the start
> > (it should surely start .sage) but after that, in my .sage directory
> > there is no subdirectory sage_notebook, only one called
> > sage_notebook.sagenb (and another called just "notebook"), which does
> > not contain any .sobj files.  Instead it contains a file users.pickle
> > which seems to contain the user account data.  But trying
>
> That is all hopelessly out of date -- there are no sobj's in the
> notebook anymore.  To reset user passwords just login as admin, click
> on Settings at the top of the page, and click on "Manage Users" and
> the rest is really easy.
>
> Fixing the docs about this is now the (easy) trac 7624:
>
>    http://trac.sagemath.org/sage_trac/ticket/7624
>
> 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
URL: http://www.sagemath.org

Reply via email to