diff options
author | bugreport%peshkin.net <> | 2004-07-12 08:36:42 +0200 |
---|---|---|
committer | bugreport%peshkin.net <> | 2004-07-12 08:36:42 +0200 |
commit | ce983f5d751e61c5500eac45e5db29eee7309520 (patch) | |
tree | 6ad5cbd3cec6177abf3d69e97baa761359885b61 /Bugzilla/Config.pm | |
parent | f5b60b13b9ebe135498421680b8d7b0166d6cb36 (diff) | |
download | bugzilla-ce983f5d751e61c5500eac45e5db29eee7309520.tar.gz bugzilla-ce983f5d751e61c5500eac45e5db29eee7309520.tar.xz |
Bug 241900: Allow Bugzilla::Auth to have multiple login and validation styles
patch by erik
r=joel
a=justdave
Diffstat (limited to 'Bugzilla/Config.pm')
-rw-r--r-- | Bugzilla/Config.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index b568918e3..d73f22875 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -25,6 +25,7 @@ # J. Paul Reed <preed@sigkill.com> # Bradley Baetz <bbaetz@student.usyd.edu.au> # Christopher Aillon <christopher@aillon.com> +# Erik Stambaugh <erik@dasbistro.com> package Bugzilla::Config; @@ -217,6 +218,12 @@ sub UpdateParams { $param{'loginmethod'} = $param{'useLDAP'} ? "LDAP" : "DB"; } + # set verify method to whatever loginmethod was + if (exists $param{'loginmethod'} && !exists $param{'user_verify_method'}) { + $param{'user_verify_method'} = $param{'loginmethod'}; + delete $param{'loginmethod'}; + } + # --- DEFAULTS FOR NEW PARAMS --- foreach my $item (@param_list) { |