Skip to content

Commit

Permalink
Clean reset password form
Browse files Browse the repository at this point in the history
- Removed arguments for the password form that were not used
  (they are still catched by kwargs, not breaking backwards compatibility)
- Subject template is picked up from oscar/customer/emails folder.
  Removed unused template.
  • Loading branch information
izidormatusov committed Jan 17, 2014
1 parent 0b5b8f3 commit 1b118ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions oscar/apps/customer/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ class PasswordResetForm(auth_forms.PasswordResetForm):
"""
communication_type_code = "PASSWORD_RESET"

def save(self, domain_override=None,
subject_template_name='registration/password_reset_subject.txt',
email_template_name='registration/password_reset_email.html',
use_https=False, token_generator=default_token_generator,
from_email=None, request=None, **kwargs):
def save(self, domain_override=None, use_https=False, request=None,
**kwargs):
"""
Generates a one-use only link for resetting password and sends to the
user.
Expand Down

This file was deleted.

0 comments on commit 1b118ca

Please sign in to comment.