[OpenSER-Users] Hints about to capture codes negative www_authorize??
Daniel-Constantin Mierla
miconda at gmail.com
Wed May 28 08:22:49 CEST 2008
Hello,
On 05/27/08 22:13, Marcio wrote:
> Hi,
>
> Who would have tips on how to capture the return codes negative of the
> function "www_authorize" ???
> I read somewhere that said to use $retval........but ...How can I to
> use it ("$retval") ??
>
> -1 - Non existent user;
> -2 - invalid passwd;
> -3 - stale nonce;
> -4 - no credentials;
> -5 - error;
>
> Any help will be greatly appreciated.
one mode is with switch statement:
www_authorize(...);
switch($retval)
{
case -1:
........
break;
case -2:
.......
break;
....
}
http://www.openser.org/dokuwiki/doku.php/core-cookbook:devel#switch
Daniel
>
> thx,
>
> Marcio
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
--
http://www.asipto.com
More information about the Users
mailing list