Project

General

Profile

Bug #4903 ยป 0001-Update-a-type-in-auth2-example-to-match-library.patch

Bruce Toll, 05/09/2016 10:52 PM

View differences:

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 */
    (1-1/1)