Skip to content

Password Reset Description

Alexsuperfly edited this page Jul 20, 2017 · 1 revision

Since our site is not live, we do not have a server set up that we can use to actually send an email to an individual's email account. This is the wiki page that addresses the code I have implemented to add the reset password functionality while working around these issues.

When trying to reset your password, you should have two terminal windows open(assuming you are using a mac. If you are not using a mac, just have another window open of whatever you use to enter 'python manage.py runserver' into the command line. I will continue this description for mac use. If you run into any issues with something else please let me know.).

The first terminal window is what you will use to run the site('python manage.py runserver'). As you know, you should be in the 'site' directory to do this.

In the other terminal window, also navigate to the 'site' directory. Run this command in the command line:

python -m smtpd -n -c DebuggingServer localhost:1025

This is the command that allows you to use the Terminal window to receive the message.

Once that is done, proceed to the site. Go to the settings tab of profile and click the 'reset password' button. Enter your email and submit the information. The site should load a message saying it sent you an email. This is obviously not the case, but I wanted to show the site as it would be if it were live.

The email will appear in the second terminal window. Copy and paste the link in the email into your browser and proceed to reset your password. Everything from that point on should be self explanatory.

Clone this wiki locally