diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-02-26 15:27:30 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-02-26 15:27:30 +0100 |
commit | 0a8f7a59f894738d86564874fbabeb1c81f3178d (patch) | |
tree | 583fef7937bd9dfa2581566531a92f1555228ad6 /Bugzilla/User.pm | |
parent | 0a0c32b2082a0f31757cc09af6d7f2ff9ba45168 (diff) | |
download | bugzilla-0a8f7a59f894738d86564874fbabeb1c81f3178d.tar.gz bugzilla-0a8f7a59f894738d86564874fbabeb1c81f3178d.tar.xz |
Bug 1061271: Add a hook into Bugzilla::User::check_and_send_account_creation_confirmation()
r=gerv a=glob
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index fa2674366..b28d09323 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -21,6 +21,7 @@ use Bugzilla::Classification; use Bugzilla::Field; use Bugzilla::Group; use Bugzilla::BugUserLastVisit; +use Bugzilla::Hook; use DateTime::TimeZone; use List::Util qw(max); @@ -2417,6 +2418,9 @@ sub check_and_send_account_creation_confirmation { ThrowUserError('account_creation_restricted'); } + # Allow extensions to do extra checks. + Bugzilla::Hook::process('user_check_account_creation', { login => $login }); + # Create and send a token for this new account. require Bugzilla::Token; Bugzilla::Token::issue_new_user_account_token($login); |