ft_transcendence/accounts/forms/change_password.py

10 lines
303 B
Python
Raw Normal View History

2023-10-25 10:10:23 -04:00
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
2023-10-25 10:10:23 -04:00
from ..status_code import *
2023-10-25 10:10:23 -04:00
class ChangePasswordForm(forms.Form):
new_password = forms.CharField(required=True, error_messages = {
'required': PASSWORD_MISSING,
})