Page 1 of 1

Validating Passwords Against Database

Posted: Wed Dec 26, 2007 11:50 am
by jtcoburn
We recently purchased AC 7.0 and have found it great. We are working to create a member section, outside of AC 7.0 but would like to utilize the existing schema of AC to validate users.

I'm working on this in CF 8, but with the password values encrypted, I'm having trouble validating users. Is there a procedure I can call or a way to validate a users form entry against the password stored in ac_UserPasswords?

Posted: Wed Jan 02, 2008 3:31 pm
by Logan Rhodehamel
I have not worked with CF in a while. They must have the ability to call .NET methods by now? You can call this method:

CommerceBuilder.Users.User.Login(username, password)

It returns either true or false. If true, the username and password were valid. If false, the login failed.

Posted: Fri Jan 04, 2008 6:51 am
by jtcoburn
Logan,

I believe this can be done with the cfobject tag, but not being a .NET person myself, I'm not sure what the correct Assembly (.dll file) or class is?