I have been running OSQA for some time, more than one year. My users could login using case insensitive usernames since begining, thats because I'm using case insensitive collation: utf8__unicode__ci.

After the last upgrade I did, the case insensitive usernames stop to work, now is necessary to insert the correct cases for the letters. People on Web are used to login without thinking about how their usernames were created.

What could be happening, the collation is still the same. How can I enable case insensitive usernames again? Thanks for your help.

ps. Sorry about the bad english.

asked 14 Jan, 00:08

Gallahar's gravatar image

Gallahar
27561414
accept rate: 0%

edited 14 Jan, 18:49

@Gallahar, all meta.osqa.net postings are required to have a clear, specific question in their title field. Please correct the title of this posting right away. Thanks.

(14 Jan, 11:29) Jordan ♦♦

The change in the collation of that field was resulted because you called the "python manage.py syncdb" management command. This action resulted a special callback to be triggered, which is now removed and this should not be an issue anymore. Here's the SVN commit: http://svn.osqa.net/changelog/OSQA/?cs=1220

(14 Jan, 12:59) Jordan ♦♦

Try executing this query:

ALTER TABLE  `auth_user` CHANGE  `username`  `username` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL

My guess is that your table collation is utf8_unicode_ci, but in fact utf8_bin is used for the username field.

link

answered 14 Jan, 11:28

Jordan's gravatar image

Jordan ♦♦
3.1k618
accept rate: 39%

Jordan! Thanks a lot! That was exactly the problem. Now fixed!

(14 Jan, 18:45) Gallahar

Thanks, that fixed my problem too. And you can execute a similar query on the "name" column for the "forum_tags" table to sort out the similar case insensitivity issue there too

(16 Jan, 13:33) Joe_Schmoe
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×75
×3

Asked: 14 Jan, 00:08

Seen: 275 times

Last updated: 16 Jan, 13:33

powered by OSQA