Wt::Auth, user register and database question
Added by Emeric Poupon about 11 years ago
Hello,
I tried an auth1-example based implementation of authentication (Wt::Auth, Wt::Dbo)
I added some setting fields in the User class (the user may want to change these settings in a dedicated dialog, but they have nothing to do with the registration process)
The registration is working fine but I noticed that no user is actually added in the database after the registration.
I do have an auth_identity and an auth_info entries but the user_id is not filled_in and the user table is empty.
I have had a look in the auth2-example and it seems the actual database adding is performed in the specialized registerUserDetails method from the RegistrationWidget.
Do I really have to specialize this method in order to get my user created? Since it seems to be quite odd, maybe I misused something?
Best Regards,
Emeric
Replies (2)
RE: Wt::Auth, user register and database question - Added by Koen Deforche about 11 years ago
Hey Emeric,
Yes, that's how we intended it. We didn't want to add a user ourselves (with a default constructor) since that perhaps could be dangerous from a security point of view (e.g. initial role, etc...) ?
Regards,
koen
RE: Wt::Auth, user register and database question - Added by Emeric Poupon about 11 years ago
Indeed that makes sense.
Thanks for your answer!