<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: how do I set alternative gateway to interrogate the database ?</title><link>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database</link><description>&lt;p&gt;Hi , &lt;/p&gt;
&lt;p&gt;in my project I've set the following conditions in the alternative gateway : &lt;/p&gt;
&lt;p&gt;in.Login.givenpassword.matches(in.Login.parola.parola)
!in.Login.givenpassword.matches(in.Login.parola.parola)&lt;/p&gt;
&lt;p&gt;So it the password from the database is correct , it goes further , if password interrogated in the database is not correct the process goes to the alternative gateway to login again . &lt;/p&gt;
&lt;p&gt;The problem is that it does not matter what I type in the password field as process goes on the same path : !in.Login.givenpassword.matches(in.Login.parola.parola)&lt;/p&gt;
&lt;p&gt;What am I doing wrong ?&lt;/p&gt;
&lt;p&gt;Regards,
Anda&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 27 Apr 2015 15:51:57 -0400</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database/1293</link><description>&lt;p&gt;I think matches(...) is the problem, this is used for Regex matching.
Try to use equals() method.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Mon, 27 Apr 2015 15:51:57 -0400</pubDate><guid>https://answers.axonivy.com/questions/1292/how-do-i-set-alternative-gateway-to-interrogate-the-database/1293</guid></item></channel></rss>