Skip Menu |

This queue is for tickets about the Apache2-AuthCookieDBI CPAN distribution.

Report information
The Basics
Id: 75685
Status: rejected
Worked: 5 min
Priority: 0/
Queue: Apache2-AuthCookieDBI

People
Owner: Nobody in particular
Requestors: ccolumbu [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: $ENV{'REDIRECT_AuthCookieReason'} value
When a user fails to login the module writes a descriptive error message, however the $ENV{'REDIRECT_AuthCookieReason'} value is just "bad_credentials" so there is no way to tell the user things like "Your account is not active yet". I don't think you should tell the user that the username entered does not exist, because hackers can use that for brute force attacks, but some programmers might want to display that type of message, and the bad_credentials does not tell you if it is an undefined user name, or just a bad password for a valid username. Is it possible to make that var more descriptive?
Subject: $ENV{'REDIRE:CT_AuthCookieReason'} value
On Sun Mar 11 00:57:33 2012, ccolumbu wrote: Show quoted text
> When a user fails to login the module writes a descriptive error > message, however the $ENV{'REDIRECT_AuthCookieReason'} value is just > "bad_credentials" so there is no way to tell the user things like "Your > account is not active yet". > I don't think you should tell the user that the username entered does > not exist, because hackers can use that for brute force attacks, but > some programmers might want to display that type of message, and the > bad_credentials does not tell you if it is an undefined user name, or > just a bad password for a valid username. > > Is it possible to make that var more descriptive?
That message is set in the base class: AuthCookie.pm in the login() method, so you should file a request on that distro: https://rt.cpan.org/Dist/Display.html?Name=Apache-AuthCookie