Skip to content

Commit

Permalink
Merge pull request #388 from mchf/master
Browse files Browse the repository at this point in the history
Merged SLE-15-SP5 branch
  • Loading branch information
mchf committed Jul 25, 2023
2 parents c699518 + 6201895 commit 750f509
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions package/yast2-users.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jul 25 11:04:17 UTC 2023 - Michal Filka <mfilka@suse.com>

- bsc#1211583
- do not pre-fill non-sense user password when going back after
importing user
- 4.6.4

-------------------------------------------------------------------
Mon Jul 24 13:21:21 UTC 2023 - Ancor Gonzalez Sosa <ancor@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-users.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-users
Version: 4.6.3
Version: 4.6.4
Release: 0
Summary: YaST2 - User and Group Configuration
License: GPL-2.0-only
Expand Down
10 changes: 9 additions & 1 deletion src/lib/users/dialogs/inst_user_first.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,15 @@ def imported_users?
#
# @return [Array<Y2Users::User>]
def imported_users
@imported_users = config.users.select { |u| importable_users.any?(u) }
@imported_users = config.users.select do |u|
importable_users.any? do |iu|
# sanitized_user is what meets each user when being prepared for writing
# basically it removes some user's config under some circumstances. When
# omited here, then it leads to failure detection of already imported (same)
# users when going back in installation.
u == sanitized_user(iu)
end
end
end

# Users database that was imported from a different system (done during pre_install)
Expand Down

0 comments on commit 750f509

Please sign in to comment.