[Greater-commits] r285 - trunk/Administration

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 27 17:44:47 CEST 2011


Author: bricks
Date: 2011-06-27 17:44:47 +0200 (Mon, 27 Jun 2011)
New Revision: 285

Modified:
   trunk/Administration/AuthenticateDialog.cpp
Log:
Always use username in lowercase

Postgres ALWAYS creates a db user in lowercase letters


Modified: trunk/Administration/AuthenticateDialog.cpp
===================================================================
--- trunk/Administration/AuthenticateDialog.cpp	2011-06-27 13:06:11 UTC (rev 284)
+++ trunk/Administration/AuthenticateDialog.cpp	2011-06-27 15:44:47 UTC (rev 285)
@@ -197,7 +197,7 @@
 
   //Copy from const char* to char[]
   strcpy(p_database, database.mb_str());
-  strcpy(p_user, username.mb_str());
+  strcpy(p_user, username.MakeLower().mb_str());
   strcpy(p_password, password.mb_str());
 
   //Call API function to connect and check, if user is table owner (admin)



More information about the Greater-commits mailing list