Author Topic: Login - Case Insensetive - possible to deactivate?  (Read 2566 times)

Offline ConiKost

  • Newbie
  • *
  • Posts: 1
Login - Case Insensetive - possible to deactivate?
« on: June 07, 2008, 04:51:56 PM »
Hello :)

I got a strange problem. When i log in trough roundcube like "Test@domain.com", roundcube sends "test@domain.com". so test ist spelled with small letters. is it possible to change this? this conflicts with my mail server, because its case sensetive and only "Test@domain.com" is valide for login.

Any ideas?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,862
Login - Case Insensetive - possible to deactivate?
« Reply #1 on: June 08, 2008, 06:42:18 AM »
I haven't tested this but i think it will work...

look for
Code: [Select]

// lowercase username if it's an e-mail address (#1484473)
if (strpos($username, '@'))
    $username = strtolower($username);

in either program/include/rcmail.php (in the login function) or program/include/main.inc (in the rcmail_login function) depending on what version of RC you have and comment it out.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦