Hello All,<div>I want to take my logic to a different route when authorize fails because of an invalid password. Ideally the www_authorize should return -2 when it fails because of invalid password.</div><div>But the return code stays as 1 only every time, even if the auth fails or auth succeeds. I check the return code in the following manner:</div>
<div><div>if (!pv_www_authorize("")) {</div><div> log(1, "Authentication Failed");</div><div> xlog("SCRIPT: Return Code is $retcode\n");</div><div>}</div><div>I can always see return code as 1, when I try registering using an invalid password.</div>
<div>Am i missing something here, any pointers would be highly appreciated. I am using Opensips 1.6.1 !!</div><div><br></div><div>--- Jayesh</div></div>