Package web :: Package user :: Module login :: Class ChangePasswordView
[hide private]
[frames] | no frames]

Class ChangePasswordView

source code

Once the user has received the password recovery email, this form actually lets him change his password

Instance Methods [hide private]
 
GET(self, username, temp_token) source code
 
POST(self, username, temp_token) source code
Class Variables [hide private]
  pass_regexp = web.form.regexp(r".{7,}", 'Must have more than 7...
  form = web.form.Form(web.form.Password('password', pass_regexp...
Method Details [hide private]

POST(self, username, temp_token)

source code 
Decorators:
  • @authenticated

Class Variable Details [hide private]

pass_regexp

Value:
web.form.regexp(r".{7,}", 'Must have more than 7 characters')

form

Value:
web.form.Form(web.form.Password('password', pass_regexp, description= \
_('New Password')), web.form.Password('password2', pass_regexp, descri\
ption= _('Repeat New Password')), web.form.Button('submit', type= 'sub\
mit', value= _('Change password')), validators= [web.form.Validator(_(\
'Passwords did\'t match'), lambda i: i.password== i.password2)])