Wt
3.2.1
|
A widget which allows a user to choose a new password. More...
#include <Auth/UpdatePasswordWidget>
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. |
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.
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.
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.