confused about something
if i'm doing a third party front end to my aware database,
then how am i supposed to get someone logged in?
if a REST service requests an auth for user "Jim" with password "xyzzy",
how am i supposed to compare that to the RegularUser.Password field (which is encoded) to validate the login?
Would it be possible to have a Password2 field, also of type Password.
Then assign Password2 = restAuth.password
THEN compare Password = Password2 ?
Seems like it would also be nice to have a VALIDATE_PASSWORD() function ?
Allowing logins from API ?
Allowing logins from API ?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Allowing logins from API ?
No such function
I use the undocumented PWD_ENCRYPT(<plain text password>) function to encrypt the incoming password and then compare that with the RegularUser Password field.
Use the Context Assistant for details on the function.
Bob
Re: Allowing logins from API ?
Yes, thx, works perfectly
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL