login script to database

P

Peter.....

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..
 
A

Andrew James

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top