PrayTeam / scriptured-prayer

GNU Affero General Public License v3.0
1 stars 0 forks source link

Password change script #69

Closed GreeneGunnar14 closed 4 months ago

GreeneGunnar14 commented 4 months ago

Password Change Script

Description

A new command has been added that allows non-django developers to easily change their password in the event they forget it.

Reason

This is a QOL tool for the developers in the FHU Capstone class that are contributing to the project but do not have experience using django.

How this has been tested

I tested changing my password and then logging in to the website. I tested to ensure that the password confirmation/matching was working correctly. I tested running the command with no users in the database.

Types of changes

Screenshots

Checklist:

Soyokaze-42 commented 4 months ago

Is this appreciably better than the changepassword command that comes with Django? https://docs.djangoproject.com/en/5.0/ref/django-admin/#changepassword poetry run python manage.py changepassword [<username>]

asherlloyd commented 4 months ago

@GreeneGunnar14 you refer to "non django developers" in your changes to the README, however, I don't see how this is functionally different from the standard changepassword method via manage.py. What benefit does this new method offer?

GreeneGunnar14 commented 4 months ago

@Soyokaze-42 @asherlloyd To be honest, I had forgotten about the standard changepassword method when working on this. It does have the benefit of a terminal menu that displays the users currently in the database, which could be helpful in the event that someone forgets their username, however I believe that the built in command sufficiently addresses the difficulties I was originally attemting to alleviate.

Soyokaze-42 commented 4 months ago

@GreeneGunnar14 Thanks! If the built-in command is sufficient, I'm going to close this PR. The best code is code you don't have to write (or maintain) as long as it works!