diff options
author | Byron Jones <glob@mozilla.com> | 2015-10-12 18:49:00 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-10-12 18:49:00 +0200 |
commit | d69cebd8c703f0a1f6839944f1c949bce350b02e (patch) | |
tree | 0c38317335ffe054597a56e281160fb7bcc8ebfb /Bugzilla/Config.pm | |
parent | 07791e2b9be26347cd3e7bbb8a5f004211841908 (diff) | |
download | bugzilla-d69cebd8c703f0a1f6839944f1c949bce350b02e.tar.gz bugzilla-d69cebd8c703f0a1f6839944f1c949bce350b02e.tar.xz |
Bug 1199089 - add support for duo-security
Diffstat (limited to 'Bugzilla/Config.pm')
-rw-r--r-- | Bugzilla/Config.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 3e9b793a6..7cc6c5dcb 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -216,6 +216,12 @@ sub update_params { } } + # Generate unique Duo integration secret key + if ($param->{duo_akey} eq '') { + require Bugzilla::Util; + $param->{duo_akey} = Bugzilla::Util::generate_random_password(40); + } + $param->{'utf8'} = 1 if $new_install; # --- REMOVE OLD PARAMS --- |