Workout With Friends
Stay fit with a little motivation
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Static Public Attributes | List of all members
wowf.forms.user.ChangePasswordForm Class Reference
Inheritance diagram for wowf.forms.user.ChangePasswordForm:
Inheritance graph
Collaboration diagram for wowf.forms.user.ChangePasswordForm:
Collaboration graph

Public Member Functions

def validate_current_password
 User must know current password.
def validate_new_password
 New password must be different from current password.
def update_password
- Public Member Functions inherited from wowf.forms.Form
def __init__

Static Public Attributes

tuple current_password
tuple new_password
tuple confirm_new_password

Additional Inherited Members

- Public Attributes inherited from wowf.forms.Form
 state

Detailed Description

Definition at line 107 of file user.py.

Member Function Documentation

def wowf.forms.user.ChangePasswordForm.update_password (   self,
  user 
)

Definition at line 133 of file user.py.

def wowf.forms.user.ChangePasswordForm.validate_current_password (   self,
  field 
)

User must know current password.

Definition at line 121 of file user.py.

def wowf.forms.user.ChangePasswordForm.validate_new_password (   self,
  field 
)

New password must be different from current password.

Definition at line 129 of file user.py.

Member Data Documentation

tuple wowf.forms.user.ChangePasswordForm.confirm_new_password
static
Initial value:
PasswordField('Verify password', [
validators.EqualTo('new_password', message='Passwords must match')])

Definition at line 114 of file user.py.

tuple wowf.forms.user.ChangePasswordForm.current_password
static
Initial value:
PasswordField('Current password', [
validators.Required(message='Current password cannot be blank')])

Definition at line 109 of file user.py.

tuple wowf.forms.user.ChangePasswordForm.new_password
static
Initial value:
PasswordField('New password', [
validators.Required(message='New password cannot be blank'),
validators.Length(min=6, max=15, message='New password must be between %(min)d and %(max)d characters')])

Definition at line 111 of file user.py.


The documentation for this class was generated from the following file: