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:
Adrià Tarroja Caubet
2026-03-27 18:15:43 +01:00
parent b9b81dbc68
commit b9ed5e4aee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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: