strip username and server is account creation wizard
This commit is contained in:
parent
9e74881ed6
commit
347e8e1e5f
|
@ -3111,7 +3111,7 @@ class AccountCreationWizardWindow:
|
|||
elif cur_page == 1:
|
||||
# We are adding an existing account
|
||||
username = self.xml.get_widget('username_entry').get_text().decode(
|
||||
'utf-8')
|
||||
'utf-8').strip()
|
||||
if not username:
|
||||
pritext = _('Invalid username')
|
||||
sectext = _(
|
||||
|
@ -3119,7 +3119,7 @@ class AccountCreationWizardWindow:
|
|||
dialogs.ErrorDialog(pritext, sectext)
|
||||
return
|
||||
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').\
|
||||
get_active()
|
||||
password = self.xml.get_widget('password_entry').get_text().decode(
|
||||
|
|
Loading…
Reference in New Issue