]>
Commit | Line | Data |
---|---|---|
4a6ca7d9 JB |
1 | --- cinnamon-5.8.1/files/usr/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py.orig 2023-06-14 06:31:31.876936429 +0200 |
2 | +++ cinnamon-5.8.1/files/usr/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py 2023-06-14 06:25:14.346681196 +0200 | |
3 | @@ -82,10 +82,9 @@ class GroupDialog (Gtk.Dialog): | |
dfa2f590 | 4 | print(detail) |
eb99a939 ER |
5 | |
6 | def _on_entry_changed(self, entry): | |
7 | - name = entry.get_text() | |
8 | - if " " in name or name.lower() != name: | |
9 | + if " " in entry.get_text(): | |
dfa2f590 | 10 | entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, "dialog-warning-symbolic") |
eb99a939 ER |
11 | - entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The group name cannot contain upper-case or space characters")) |
12 | + entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The group name cannot contain space characters")) | |
13 | self.set_response_sensitive(Gtk.ResponseType.OK, False) | |
14 | else: | |
dfa2f590 | 15 | entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, None) |
4a6ca7d9 | 16 | @@ -397,9 +396,9 @@ class NewUserDialog(Gtk.Dialog): |
eb99a939 ER |
17 | fullname = self.realname_entry.get_text() |
18 | username = self.username_entry.get_text() | |
19 | valid = True | |
dfa2f590 | 20 | - if re.search('[^a-z0-9_.-]', username): |
eb99a939 | 21 | + if " " in username: |
dfa2f590 JB |
22 | self.username_entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, "dialog-warning-symbolic") |
23 | - self.username_entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("Invalid username")) | |
eb99a939 ER |
24 | + self.username_entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The username cannot contain space characters")) |
25 | valid = False | |
4a6ca7d9 JB |
26 | elif self.user_exists(username): |
27 | self.username_entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, "dialog-warning-symbolic") |