Skip to content

Commit

Permalink
Merge pull request #105 from ancorgs/import_users
Browse files Browse the repository at this point in the history
Fix Dialogs::InstUserFirst to work if the module Users is imported
  • Loading branch information
ancorgs committed Aug 12, 2016
2 parents a846ea7 + fab6b82 commit 5fa6a5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-users.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Aug 11 11:37:12 UTC 2016 - ancor@suse.com

- Fixed the installation dialog for user creation so it works
also in YaST Firstboot (needed to fix bsc#992245)
- 3.1.54

-------------------------------------------------------------------
Mon Jun 27 09:18:59 UTC 2016 - igonzalezsosa@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: 3.1.53
Version: 3.1.54
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
4 changes: 2 additions & 2 deletions src/lib/users/dialogs/inst_user_first.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def initialize

# Check if some users database was imported from a
# different partition (done during pre_install)
users_databases = Users::UsersDatabase.all
users_databases = ::Users::UsersDatabase.all
@import_available = users_databases.any?
if @import_available
@importable_users = importable_users(users_databases)
Expand Down Expand Up @@ -478,7 +478,7 @@ def valid_password?(username, pw1, pw2)
return false
end

passwd = Users::LocalPassword.new(username: username, plain: pw1, also_for_root: @use_pw_for_root)
passwd = ::Users::LocalPassword.new(username: username, plain: pw1, also_for_root: @use_pw_for_root)
if !passwd.valid?
message = passwd.errors.join("\n\n") + "\n\n" + _("Really use this password?")
if !Popup.YesNo(message)
Expand Down

0 comments on commit 5fa6a5f

Please sign in to comment.