Remove trailing spaces from the user name in the login window
Since e19329d25a6f user login field prevents trailing or leading spaces so the clients can remove them from the login window. Closes #13898
This commit is contained in:
+1
-1
@@ -298,7 +298,7 @@
|
||||
};
|
||||
|
||||
var login = function() {
|
||||
var login = dialog.login_input.val();
|
||||
var login = dialog.login_input.val().trim();
|
||||
var database = database || dialog.database_select.val() ||
|
||||
dialog.database_input.val();
|
||||
dialog.modal.find('.has-error').removeClass('has-error');
|
||||
|
||||
@@ -703,7 +703,7 @@ class DBLogin(object):
|
||||
CONFIG['login.db'] = database
|
||||
CONFIG['login.expanded'] = self.expander.props.expanded
|
||||
if response == Gtk.ResponseType.OK:
|
||||
authentication = self.entry_login.get_text()
|
||||
authentication = self.entry_login.get_text().strip()
|
||||
CONFIG['login.login'] = authentication
|
||||
CONFIG['login.service'] = ''
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user