v1 or v2 ?
This article is written for Workflow (v2).
But you can reset your password in Deis(v1) by almost same procedure.
case: you are not an administrator
Ask your administrator to exec deis auth:passwd --user {your_account}
case: you are the one and only administrator
Ssh into your kube-master node and exec manage.py
in the controller.
$ kubectl exec --namespace=deis -it deis-controller-3568054663-x4jk5 ./manage.py shell
Python 3.5.2 (default, Jul 5 2016, 12:43:10)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>>
Next, Type the script in Python like this.
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username__exact='{your_account_name}')
>>> u.set_password('{new_password_plain_text}')
>>> u.save()
>>>
You can logout by pressing Ctrl-D
after executing u.save()
.
Note
deis-controller-3568054663-x4jk5
is the pod name.
Modify {your_account_name}
and '{new_password_plain_text}
as you like.