Simple Authentication
Added by Stefano Martini almost 9 years ago
Hi guys,
I have to make a web application that needs user authentication using wt-3.3.5.
The user's information are stored into a Mysql database table with only 2 fields:
- name varchar(255) (which is the primary key)
- password varchar(255) (which is the md5 of the password)
I wrote the following classes:
- AdminUser which represents the user
- MyUserDatabase a subclass of Wt::Auth::AbstractUserDatabase
- MySession a subclass of Wt::Dbo::Session
- MyApplication which is the view.
The class AdminUser has 2 public fields of type std::string: name and password.
When I compile and link all together I got this error:
0x20): undefined reference to `Wt::Dbo::Impl::ParameterWt::WString::clone() const'
MyUserDatabase.o:(.rodata._ZTVN2Wt3Dbo4Impl9ParameterINS_7WStringEEE[_ZTVN2Wt3Dbo4Impl9ParameterINS_7WStringEEE]+0x28): undefined reference to `Wt::Dbo::Impl::ParameterWt::WString::bind(Wt::Dbo::SaveBaseAction&)'
collect2: error: ld returned 1 exit status
make: * [myauthapp] Error 1
Does anybody have a suggestion?
What is the right programming schema in order to make a personal authentication procedure (not that one explained in the examples) ?
Thanks in advance
Stefano