diff options
author | lpsolit%gmail.com <> | 2005-09-02 06:39:20 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-02 06:39:20 +0200 |
commit | de1f16178dcae2d517e849e45ee77fd3d636005c (patch) | |
tree | 757461a665f72fa131a8662b2daaff8999b84aa9 /Bugzilla/Token.pm | |
parent | 7ce67eec4fb2c17ee3621b1aad2f99295ed4649f (diff) | |
download | bugzilla-de1f16178dcae2d517e849e45ee77fd3d636005c.tar.gz bugzilla-de1f16178dcae2d517e849e45ee77fd3d636005c.tar.xz |
Bug 304582: Move GenerateRandomPassword() out of globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=myk
Diffstat (limited to 'Bugzilla/Token.pm')
-rw-r--r-- | Bugzilla/Token.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index a198dda3f..1cf51a332 100644 --- a/Bugzilla/Token.pm +++ b/Bugzilla/Token.pm @@ -150,7 +150,7 @@ sub CleanTokenTable { } sub GenerateUniqueToken { - # Generates a unique random token. Uses &GenerateRandomPassword + # Generates a unique random token. Uses generate_random_password # for the tokens themselves and checks uniqueness by searching for # the token in the "tokens" table. Gives up if it can't come up # with a token after about one hundred tries. @@ -167,7 +167,7 @@ sub GenerateUniqueToken { if ($tries > 100) { ThrowCodeError("token_generation_error"); } - $token = &::GenerateRandomPassword(); + $token = generate_random_password(); $sth->execute($token); $duplicate = $sth->fetchrow_array; } |