#include <User.h>
List of all members.
Detailed Description
Definition at line 17 of file User.h.
Constructor & Destructor Documentation
| User::User |
( |
const std::string & |
name, |
|
|
const std::string & |
password |
|
) |
| |
Member Function Documentation
| bool User::authenticate |
( |
const std::string & |
password ) |
const |
template<class Action >
| void User::persist |
( |
Action & |
a ) |
[inline] |
Definition at line 25 of file User.h.
{
Wt::Dbo::field(a, name, "name");
Wt::Dbo::field(a, password_, "password");
Wt::Dbo::field(a, gamesPlayed, "gamesPlayed");
Wt::Dbo::field(a, score, "score");
Wt::Dbo::field(a, lastLogin, "lastLogin");
}
| void User::setPassword |
( |
const std::string & |
password ) |
|
Definition at line 57 of file User.C.
{
#ifdef HAVE_CRYPT
password_ = md5(password, generateSalt());
#else
password_ = password;
#endif
}
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/koen/project/wt/public-git/wt/examples/hangman/User.h
- /home/koen/project/wt/public-git/wt/examples/hangman/User.C