Closed
Bug 304582
Opened 19 years ago
Closed 19 years ago
Move GenerateRandomPassword out of globals.pl
Categories
(Bugzilla :: User Accounts, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.22
People
(Reporter: LpSolit, Assigned: LpSolit)
References
Details
Attachments
(1 file)
4.08 KB,
patch
|
bugreport
:
review+
|
Details | Diff | Splinter Review |
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();
Assignee | ||
Comment 1•19 years ago
|
||
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
Assignee | ||
Comment 2•19 years ago
|
||
Attachment #194156 -
Flags: review?(wurblzap)
Assignee | ||
Comment 3•19 years ago
|
||
Comment on attachment 194156 [details] [diff] [review] patch, v1 Marc seems away these days; asking joel.
Attachment #194156 -
Flags: review?(bugreport)
Updated•19 years ago
|
Attachment #194156 -
Flags: review?(wurblzap)
Attachment #194156 -
Flags: review?(bugreport)
Attachment #194156 -
Flags: review+
Updated•19 years ago
|
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 4•19 years ago
|
||
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.
Description
•