login script to database
Andrew James
drew at gremlinhosting.com
Mon Nov 22 17:50:40 EST 2004
Peter,
Have you had a look at the capabilities of the Apache module mod_auth. I
believe there's an extension module allowing basic authentication off a
PostgreSQL database. This would alleviate your need to write any code at
all!
Regards,
Andrew
On Mon, 2004-11-22 at 22:12 +0100, Peter..... wrote:
> Hi all.
>
> I want to make a login script( using python) to a homepage.
> The password and name is stored in a PostgreSQL database, so I have to go to
> connect to the database ( I know how to do that )
> but I dont know how to write a login script in python and how to look if the
> password and name entered is the same as in the database, if it is I want to
> link to a webpage www.webpage.com if it isnt I want it to write a message
> like " Wrong password entered "
>
> Can any help me out :D
>
> Thanks for your time..
>
>
--
Andrew James <drew at gremlinhosting.com>
More information about the Python-list
mailing list