Project

General

Profile

« Previous | Next » 

Revision 9c20c034

Added by Jim Pingle over 8 years ago

When resetting admin account via /etc/rc.initial.password, Check if the admin account is expired and reset if needed. Fixes #7354

View differences:

src/etc/rc.initial.password
66 66
			unset($admin_user['disabled']);
67 67
		}
68 68

  
69
		if (isset($admin_user['expires'])) {
70
			unset($admin_user['expires']);
71
		}
72

  
69 73
		local_user_set_password($admin_user, strtolower($g['product_name']));
70 74
		local_user_set($admin_user);
71 75
		write_config(gettext("password changed from console menu"));

Also available in: Unified diff