http://www.webtoolkit.eu/wt/doc/tutorial/auth.html

I'm working through the docs trying t learn this...

1. Is Session::configureAuth() supposed to be static? I'm also looking at 
hangman example.  ( http://www.webtoolkit.eu/wt/src ) which uses it statically.
2. Are all the Session.C files the same file? 
3, Hangman uses:
Session::Session() : sqlite3_(WApplication::instance()->appRoot() + 
"hangman.db")
But the docs use:
Session::Session(const std::string& sqliteDb) : connection_(sqliteDb)

I prefer the second (less hardcoding), but then you can't use Session as a 
class member, you have to use it as a pointer and create it in your application 
class constructor. 

4. it looks like we need more statics for auth() passwordAuth() and oAuth() too.

5. Finally an error I cannot figure out, 
authWidget->model()->addPasswordAuth(&Session::passwordAuth()); gives me:
/usr/include/Wt/Auth/FormBaseModel:58: note:   no known conversion for argument 
1 from 'const Wt::Auth::PasswordService*' to 'const 
Wt::Auth::AbstractPasswordService*'

where I have: 

Wt::Auth::PasswordServicemyPasswordService(myAuthService)
constAuth::PasswordService&AuthSession::passwordAuth(){returnmyPasswordService;}
many thanks in advance.
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to