|Control the access to a web service using a user/password|
|This is a general framework to handle authentication. It does not have any look. It simply provides the logic to handle authentication.|
|void bottom ()|
|void exec (const char *user, const char *passw)|
|void setup (W_SSTRING &user, W_SSTRING &passw)|
|void top ()|
|bool validate (const char *user, const char *passw)|
You put the application there.
The component is using the form component internally. The HTML form is already defined. You simply concentrate on the HTML statements inside the form. You call field_user() and field_pass() to position the two input field.
Return true is the user/password pair are valid. The function does not produce any output
You create a web layout and use this function to position the field.