strip username and server is account creation wizard

This commit is contained in:
Yann Leboulanger 2008-01-20 18:10:58 +00:00
parent 9e74881ed6
commit 347e8e1e5f
1 changed files with 2 additions and 2 deletions

View File

@ -3111,7 +3111,7 @@ class AccountCreationWizardWindow:
elif cur_page == 1: elif cur_page == 1:
# We are adding an existing account # We are adding an existing account
username = self.xml.get_widget('username_entry').get_text().decode( username = self.xml.get_widget('username_entry').get_text().decode(
'utf-8') 'utf-8').strip()
if not username: if not username:
pritext = _('Invalid username') pritext = _('Invalid username')
sectext = _( sectext = _(
@ -3119,7 +3119,7 @@ class AccountCreationWizardWindow:
dialogs.ErrorDialog(pritext, sectext) dialogs.ErrorDialog(pritext, sectext)
return return
server = self.xml.get_widget('server_comboboxentry').child.get_text().\ server = self.xml.get_widget('server_comboboxentry').child.get_text().\
decode('utf-8') decode('utf-8').strip()
savepass = self.xml.get_widget('save_password_checkbutton').\ savepass = self.xml.get_widget('save_password_checkbutton').\
get_active() get_active()
password = self.xml.get_widget('password_entry').get_text().decode( password = self.xml.get_widget('password_entry').get_text().decode(