Skip to content

Recovering forgotten password

Gleb Kuznetsov edited this page Jun 20, 2016 · 1 revision

While Millstone currently doesn't have a way of sending an email for password recovery, an admin can login through the Django shell to reset the password.

From millstone/genome_designer/:

$ ./manage.py shell

Once in the shell:

In [1]: from django.contrib.auth.models import User

In [2]: User.objects.all()
Out[2]: [<User: gmcdev>]

In [3]: u = User.objects.all()[0]

In [4]: u.set_password('newpassword')

In [5]: u.save()