Wt  3.2.2
Public Member Functions | Protected Member Functions
Wt::Auth::UpdatePasswordWidget Class Reference

A widget which allows a user to choose a new password. More...

#include <Auth/UpdatePasswordWidget>

Inheritance diagram for Wt::Auth::UpdatePasswordWidget:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 UpdatePasswordWidget (const User &user, RegistrationModel *registrationModel, AuthModel *authModel, WContainerWidget *parent=0)
 Constructor.

Protected Member Functions

virtual WFormWidgetcreateFormWidget (WFormModel::Field field)
 Creates a form widget.

Detailed Description

A widget which allows a user to choose a new password.

This widget lets a user choose a new password.

The widget renders the "Wt.Auth.template.update-password" template. Optionally, it asks for the current password, as well as a new password.

See also:
AuthWidget::createUpdatePasswordView()

Constructor & Destructor Documentation

Wt::Auth::UpdatePasswordWidget::UpdatePasswordWidget ( const User user,
RegistrationModel registrationModel,
AuthModel authModel,
WContainerWidget parent = 0 
)

Constructor.

If authModel is not null, the user also has to authenticate first using his current password.


Member Function Documentation

WFormWidget * Wt::Auth::UpdatePasswordWidget::createFormWidget ( WFormModel::Field  field) [protected, virtual]

Creates a form widget.

This method is called by updateViewField() when it needs to create a form widget for a field. You either need to make sure these widgets have been created and bound before calling updateView(), or you need to specialize this method to do it on-demand.

Reimplemented from Wt::WTemplateFormView.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on Fri Jul 27 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1