Bug #4903 ยป 0001-Update-a-type-in-auth2-example-to-match-library.patch
examples/feature/auth2/RegistrationView.C | ||
---|---|---|
updateView(detailsModel_);
|
||
}
|
||
Wt::WFormWidget *RegistrationView::createFormWidget(Wt::WFormModel::Field field)
|
||
Wt::WWidget *RegistrationView::createFormWidget(Wt::WFormModel::Field field)
|
||
{
|
||
if (field == UserDetailsModel::FavouritePetField)
|
||
return new Wt::WLineEdit();
|
examples/feature/auth2/RegistrationView.h | ||
---|---|---|
RegistrationView(Session& session, Wt::Auth::AuthWidget *authWidget = 0);
|
||
/* specialize to create user details fields */
|
||
virtual Wt::WFormWidget *createFormWidget(Wt::WFormModel::Field field);
|
||
virtual Wt::WWidget *createFormWidget(Wt::WFormModel::Field field);
|
||
protected:
|
||
/* specialize to also validate the user details */
|