Fix Postgres user module always reporting changes (#23488)

(cherry picked from commit 54316f7da0)
pull/23608/head
Albert Casademont 9 years ago committed by Toshio Kuratomi
parent ee69fd140b
commit 1a30df265d

@ -285,7 +285,7 @@ def user_alter(cursor, module, user, password, role_attr_flags, encrypted, expir
# Do we actually need to do anything?
pwchanging = False
if password is not None:
if encrypted:
if encrypted == 'ENCRYPTED':
if password.startswith('md5'):
if password != current_role_attrs['rolpassword']:
pwchanging = True

Loading…
Cancel
Save