Skip to content

Commit

Permalink
Fixed removing the password expiration date (bsc#1080125)
Browse files Browse the repository at this point in the history
The 0 meant 1970-01-01 which is "expired since long ago". That's wrong.
  • Loading branch information
mvidner committed Mar 1, 2018
1 parent 95ee930 commit def55db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/users/dialogs.rb
Expand Up @@ -1698,7 +1698,7 @@ def EditUserDialog(what)
if new_exp_date != exp_date
exp_date = new_exp_date
if exp_date == ""
Ops.set(user, "shadowExpire", user_type == "ldap" ? "" : "0")
user["shadowExpire"] = ""
else
out = Convert.to_map(
SCR.Execute(
Expand Down

0 comments on commit def55db

Please sign in to comment.