Wt: Wt::Auth::UpdatePasswordWidget Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions
Wt::Auth::UpdatePasswordWidget Class Reference
Authentication module (Wt::Auth)

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

`#include <Auth/UpdatePasswordWidget>`

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

List of all members.

## Public Member Functions
| UpdatePasswordWidget (const User &user, RegistrationModel *registrationModel, AuthModel *authModel, WContainerWidget *parent=0)
| Constructor.
## Protected Member Functions
virtual WFormWidget * | createFormWidget (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, and none was specified using setFormWidget().

Reimplemented from Wt::WTemplateFormView.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator