<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">We have previously added new WebService operations that allow you to verify a Contacts username and password, but had to do this as a completely custom solution to meet security requirements as there was no existing way of doing it.</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="font-size:12.8px;color:rgb(80,0,80)"><span style="color:navy;font-family:Verdana,sans-serif;font-size:10pt">Martin Allen</span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b style="font-size:12.8px"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)">01392 248692 - Main Office<br>01392 690659 - Direct Line</span></b><br></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)"><img width="288" height="65" src="cid:image001.png@01CFC1D6.1BCFF790" alt="signature2"></span></b><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy">Have you visited our website recently? <a href="http://www.clystnet.com/" style="color:rgb(17,85,204)" target="_blank">http://www.clystnet.com</a></span><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy"><br></span><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(153,153,153)">The information in this email is confidential If you are not the intended recipient, you must not read or use that information. This email and any attachments are believed to be virus free however no responsibility is accepted by Clystnet for any loss or damage arising in any way from receipt or use thereof. Clystnet Ltd (company reg number 7164503) is based at Silverdown Park, Fair Oak Close, Clyst Honiton, EX5 2UX</span></p></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 16 Sep 2020 at 14:39, Chris Landa <<a href="mailto:stylesuxx@gmail.com">stylesuxx@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Am Mi., 16. Sept. 2020 um 15:29 Uhr schrieb Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">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 14:07, Chris Landa wrote:<br>
> It seems "wrong" to me having to validate the login details against the <br>
> customerportal. I thought there might be a way via API that I am <br>
> missing. I am aware that those passwords are encrypted. I would encrypt <br>
> the given password and compare against what is already in the database - <br>
> basically the same way it is done on the customerportal login page anyway.<br>
<br>
Ahh, I see.<br>
<br>
As far as I am aware all of the existing webservices APIs were only ever <br>
designed for vtiger _users_; not portal users, i.e. Contacts.<br></blockquote><div> </div><div>This is also how I understand it - thank you for confirming</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Take a look at the files api.php and apis/AbstractApi.php in the vtiger <br>
CustomerPortal module for the way the authentication process is handled.<br>
<br>
Looking at that code I think you could probably poke that endpoint <br>
directly - rather than having to go via the Customer Portal application <br>
itself.<br>
<br>
Alternatively I suppose you could create a new webservices endpoint (see <br>
the table vtiger_ws_operation) for validation/logging in of Portal users?<br>
<br>
<br>
Al</blockquote><div> </div><div>Thanks for your input - right now I have the "wrong feeling" solution implemented since this is just a POC project.</div><div>If we move forward, I will look into a new webservice endpoint as it seems to be the cleanest solution to me.</div><div><br></div><div>Thanks again for your quick reply.</div><div><br></div><div>Chris</div></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>