summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-08-24 20:03:36 +0200
committerByron Jones <glob@mozilla.com>2015-08-24 20:03:36 +0200
commit59f96419500ae8c1b87b06abb0a5cca9f165b030 (patch)
tree40b907931a7fb5b32f411804fc816812ff2022c5 /Bugzilla
parentc63ecc86155c5bb6fb85e6412fe7c6e80ba33a65 (diff)
downloadbugzilla-59f96419500ae8c1b87b06abb0a5cca9f165b030.tar.gz
bugzilla-59f96419500ae8c1b87b06abb0a5cca9f165b030.tar.xz
Bug 1196134 - add ability for admins to force a user to change their password on next login (schema only)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB/Schema.pm2
-rw-r--r--Bugzilla/Install/DB.pm5
2 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index 49ee0ff96..a9dfa6d8e 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -950,6 +950,8 @@ use constant ABSTRACT_SCHEMA => {
is_enabled => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'TRUE'},
last_seen_date => {TYPE => 'DATETIME'},
+ password_change_required => { TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE' },
+ password_change_reason => { TYPE => 'varchar(64)' },
],
INDEXES => [
profiles_login_name_idx => {FIELDS => ['login_name'],
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 5b8cc3992..9a329d355 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -747,6 +747,11 @@ sub update_table_definitions {
_add_restrict_ipaddr();
+ $dbh->bz_add_column('profiles', 'password_change_required',
+ { TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE' });
+ $dbh->bz_add_column('profiles', 'password_change_reason',
+ { TYPE => 'varchar(64)' });
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################