diff src/browser/sat_browser/register.py @ 487:e588335b6aa8

browser and server side: force lower case for the profile name at new account creation + fixes CSS for textarea
author souliane <souliane@mailoo.org>
date Thu, 19 Jun 2014 19:28:17 +0200
parents bbdc5357dc00
children a5019e62c3e9
line wrap: on
line diff
--- a/src/browser/sat_browser/register.py	Wed Jun 18 14:56:51 2014 +0200
+++ b/src/browser/sat_browser/register.py	Thu Jun 19 19:28:17 2014 +0200
@@ -189,6 +189,8 @@
             self.submit()
 
     def onRegister(self, button):
+        # XXX: for now libervia forces the creation to lower case
+        self.register_login_box.setText(self.register_login_box.getText().lower())
         if not re.match(r'^[a-z0-9_-]+$', self.register_login_box.getText(), re.IGNORECASE):
             self.register_warning_msg.setHTML(_('Invalid login, valid characters<br>are a-z A-Z 0-9 _ -'))
             self.register_warning_msg.setVisible(True)