UniverseUniversity


Home Projects Jobs Clientele Contact

uu


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: login stored procedure



Frankly speaking, a login error is an exception, no matter what causes it - bad username/pass or db problem.
In reality, 99% of the exceptions here would be invalid password.

2008/12/19 Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
It would be nice to change login stored procedure
in a way that would let it indicate login failure
via return value. This would allow to differentiate
between login failure and database error conditions
in UuServlet code. As of now, failure to connect to
database is treated as login failure, which isn't
right.

As a workaround, I'm now checking for the error string
in exception, but that feels ugly.

  Ilya.




--
Alexey Parshin,
http://www.sptk.net

Authoright © Total Knowledge: 2001-2008