michelts napisał(a):

Hi guys,

I thinking on use a basic http login rather than a form page to handle
user logins, I done something like this:

...
self.response().setHeader('Status', '401 Unauthorized')
self.response().setHeader('WWW-Authenticate', 'Basic realm="Restrict Area"')
...

How can I validate the login and password specified by the user? Is
this a good approach, is there an know problem using this way rather
than a login page?



There is no poroblem with HTTP Authorization. Look at http://svn.w4py.org/LoginKit/ to see how this things can be done. Then check http://wiki.w4py.org/httpauthentication.html for Apache configuration.


Thanks for help



Regards
Radek

--
Radosław Kintzi (radek at lucasconsulting dot pl)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to