From e6d45b6d6028527079744af20dc9407a2a3867f2 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 25 Aug 2015 13:40:13 +0800 Subject: Bug 1196134 - add ability for admins to force a user to change their password on next login --- editusers.cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index a55fd04a7..bb23279ff 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -264,6 +264,12 @@ if ($action eq 'search') { $otherUser->set_disable_mail($cgi->param('disable_mail')); $otherUser->set_extern_id($cgi->param('extern_id')) if defined($cgi->param('extern_id')); + $otherUser->set_password_change_required($cgi->param('password_change_required')); + $otherUser->set_password_change_reason( + $otherUser->password_change_required + ? $cgi->param('password_change_reason') + : '' + ); $changes = $otherUser->update(); } -- cgit v1.2.3-24-g4f1b