<div dir="ltr"><div dir="ltr">Am Mi., 16. Sept. 2020 um 14:59 Uhr schrieb Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>>:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 16/09/2020 13:48, Chris Landa wrote:<br>
> <br>
> I now want to be able to verify customers with their login credentials, <br>
> I am not sure how to accomplish this via API. I tried by querying for <br>
> Contacts (SELECT * from Contacts WHERE email='<a href="mailto:foo@bar.com" target="_blank">foo@bar.com</a> <br>
> <mailto:<a href="mailto:foo@bar.com" target="_blank">foo@bar.com</a>>' and portal=1 LIMIT 1;), but the result does not <br>
> contain the password to check against.<br>
<br>
Err, the passwords are encrypted and should not be available/visible to <br>
_anyone_ once the initial email has been sent to the Contact.<br>
<br>
Am not completely sure what you are trying to achieve tbh?<br></blockquote><div><br></div><div>I have a third party application where users can input their credentials to request a quote, I want to validate, that those credentials are indeed valid credentials for the CustomerPortal.</div><div>Right now I am posting those credentials to /customerportal/index.php and processing the response to determine if the given credentials are indeed valid. I then process to add a Quote to this customer via the "regular" vTiger API.</div><div><br></div><div>It seems "wrong" to me having to validate the login details against the customerportal. I thought there might be a way via API that I am missing. I am aware that those passwords are encrypted. I would encrypt the given password and compare against what is already in the database - basically the same way it is done on the customerportal login page anyway.</div></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"></div></div></div></div></div></div></div></div></div></div></div>