[Vtigercrm-developers] vTiger CustomerPortal API

Chris Landa stylesuxx at gmail.com
Wed Sep 16 13:07:14 GMT 2020


Am Mi., 16. Sept. 2020 um 14:59 Uhr schrieb Alan Lord <alanslists at gmail.com
>:

> On 16/09/2020 13:48, Chris Landa wrote:
> >
> > I now want to be able to verify customers with their login credentials,
> > I am not sure how to accomplish this via API. I tried by querying for
> > Contacts (SELECT * from Contacts WHERE email='foo at bar.com
> > <mailto:foo at bar.com>' and portal=1 LIMIT 1;), but the result does not
> > contain the password to check against.
>
> Err, the passwords are encrypted and should not be available/visible to
> _anyone_ once the initial email has been sent to the Contact.
>
> Am not completely sure what you are trying to achieve tbh?
>

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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200916/6b8f634e/attachment.html>


More information about the vtigercrm-developers mailing list