Rob Lanphier wrote:
However, I log back out and log back in as
"RoBLA". It allows this too.
Yay? Looking at the user db, it appears to have auto-created accounts
for "RobLa" and "RoBLA". Boo!
My inclination is to add a new method
AuthPlugin::getCanonicalName($username), which gets called from
User::newFromName. That'll give my plugin (or any AuthPlugin) a crack
at munging the name just before an account is created.
Before I do all of that, though, I'm hoping that there's a better
approach that I'm not considering. Thoughts?
You should be able to modify the name on the user object as it's passed
through to you to use the canonical case form.
(Warning: I have not tried thsi!)
-- brion vibber (brion @
pobox.com)