Homec4science

Fixed very slow query in get_email_from_username. If username is empty (it's…

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Nov 28 2007, 14:59.

Description

Fixed very slow query in get_email_from_username. If username is empty (it's possible when using SSO or when trying malicious logging) the function directly returns empty string (there are far too many empty users in the database, i.e. all the guests!).

Details

Committed
Samuele Kaplun <samuele.kaplun@cern.ch>Nov 28 2007, 14:59
Parents
R3600:bee39ae8ff46: caching
Branches
Unknown
Tags
Unknown

Event Timeline

Samuele Kaplun <samuele.kaplun@cern.ch> committed R3600:6fc3d52ad487: Fixed very slow query in get_email_from_username. If username is empty (it's… (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Nov 28 2007, 14:59