Wt  3.2.0
Public Member Functions
Wt::Auth::EnterPasswordFields Class Reference

Helper class for creating a form to let a user enter his password. More...

#include <Wt/Auth/EnterPasswordFields>

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

List of all members.

Public Member Functions

 EnterPasswordFields (const AbstractPasswordService &auth, WLineEdit *password, WText *passwordInfo, WPushButton *okButton, WObject *parent=0)
 Constructor.
bool validate (const User &user)
 Validates the entered password.

Detailed Description

Helper class for creating a form to let a user enter his password.

This class implements the process of letting the user enter his password. It also implements attempt throttling.

See also:
AuthWidget, PasswordPromptDialog, UpdatePasswordWidget

Constructor & Destructor Documentation

Wt::Auth::EnterPasswordFields::EnterPasswordFields ( const AbstractPasswordService auth,
WLineEdit password,
WText passwordInfo,
WPushButton okButton,
WObject parent = 0 
)

Constructor.

The object uses a password entry field, a feed-back text field (for error feed-back and/or help text), and optionally also manipulates the "login"/"ok" button to indicate that attempts are currently refused because of password attempt throttling.


Member Function Documentation

bool Wt::Auth::EnterPasswordFields::validate ( const User user)

Validates the entered password.

This validates the entered password, and provides the necessary feed-back in the info field and ok button.

Returns whether the entered password is valid.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on Tue Nov 29 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1