Closed Bug 304582 Opened 19 years ago Closed 19 years ago

Move GenerateRandomPassword out of globals.pl

Categories

(Bugzilla :: User Accounts, enhancement)

2.20
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file)

It should go into Token.pm as generate_random_token() as 'token' is more
appropriate than 'password'. Actually used in two places only:

Token.pm, line 170: $token = &::GenerateRandomPassword();
User.pm, line 1184: $password ||= &::GenerateRandomPassword();
Depends on: 303413
It appears that moving this function into Token.pm doesn't work due to a module
dependency loop:

User -> Token -> BugMail -> User

It looks like the only other reasonable place is Util.pm, even if it's really
not my favorite choice.
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.22
Attached patch patch, v1Splinter Review
Attachment #194156 - Flags: review?(wurblzap)
Comment on attachment 194156 [details] [diff] [review]
patch, v1

Marc seems away these days; asking joel.
Attachment #194156 - Flags: review?(bugreport)
Attachment #194156 - Flags: review?(wurblzap)
Attachment #194156 - Flags: review?(bugreport)
Attachment #194156 - Flags: review+
Flags: approval?
Flags: approval? → approval+
Checking in globals.pl;
/cvsroot/mozilla/webtools/bugzilla/globals.pl,v  <--  globals.pl
new revision: 1.337; previous revision: 1.336
done
Checking in Bugzilla/Token.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Token.pm,v  <--  Token.pm
new revision: 1.36; previous revision: 1.35
done
Checking in Bugzilla/User.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/User.pm,v  <--  User.pm
new revision: 1.77; previous revision: 1.76
done
Checking in Bugzilla/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Util.pm,v  <--  Util.pm
new revision: 1.40; previous revision: 1.39
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: