PDA

View Full Version : Check login



CyberAlien
03-05-2004, 04:27 AM
Hello,

This might be a very stupid question. How to correctly check login/password with php?

Right now i'm doing it by checking if /home/username exists and trying to connect to mysql with login/password, but i don't think this is correct way to do it. And i'm 100% sure i'm missing something very simple. Any ideas?

l0rdphi1
03-05-2004, 04:30 AM
You'll want to use the API. It's the only way.

DirectAdmin Support
03-05-2004, 10:48 AM
I think this one isn't documented:

CMD_API_VERIFY_PASSWORD
http://www.directadmin.com/features.php?id=193

John

CyberAlien
03-05-2004, 10:50 AM
Thanks!