Closed Bug 293208 Opened 20 years ago Closed 13 years ago

Display the user's current IP address on the login page

Categories

(Bugzilla :: User Interface, enhancement)

2.19.2
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jpyeron, Unassigned)

Details

Attachments

(2 obsolete files)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322) Build Identifier: add ip address to login page Reproducible: Always Steps to Reproduce:
Attached patch adds user's ip (obsolete) — Splinter Review
Attachment #182828 - Flags: review?
Assignee: myk → jpyeron
Summary: template toolkit and the user's ip address → Display the user's current IP addres on the login page
Version: unspecified → 2.19.2
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
sorry but the patch does not have the correct header, and my internet is acting screwy. it is for template/en/default/account/auth/login.html.tmpl
Comment on attachment 182828 [details] [diff] [review] adds user's ip I would suggest placing the USE line in the beginning of the file. IIRC we're not restricting to a specific IP, but to a variable network slice in which that IP is inserted, right?
(In reply to comment #3) > IIRC we're not restricting to a specific IP, but to a variable network slice in > which that IP is inserted, right? Without looking at the code, I believe the answer to that question is: it depends. IIRC, there's now a Param() that allows the admin to specify the network mask. Also IIRC, the default is still /32 (or this IP).
Summary: Display the user's current IP addres on the login page → Display the user's current IP address on the login page
Comment on attachment 182828 [details] [diff] [review] adds user's ip The current patch makes Bugzilla to lie when the network mask in the params is different from 32.
Attachment #182828 - Flags: review? → review-
Attached patch patch for tip (obsolete) — Splinter Review
updated. take #3 i don't understand what #5 means :-(
Attachment #182828 - Attachment is obsolete: true
Attachment #236511 - Flags: review?
Comment on attachment 236511 [details] [diff] [review] patch for tip t/008filter..........NOK 232# Failed test '(en/default) template/en/default/account/auth/login-small.html.tmpl has unfiltered directives: # 70: Bugzilla.cgi.remote_host() # --ERROR' # in t/008filter.t at line 131. # Failed test '(en/default) template/en/default/account/auth/login.html.tmpl has unfiltered directives: # 74: Bugzilla.cgi.remote_host() # --ERROR' # in t/008filter.t at line 131. t/008filter..........NOK 233# Looks like you failed 2 tests of 272. AKA: add FILTER html This is required as remote_host() could possibly be a hostname with '<', etc.
Attachment #236511 - Flags: review? → review-
Attachment #236511 - Attachment is obsolete: true
Assignee: jpyeron → ui
Status: ASSIGNED → NEW
There has been no rationale on why displaying the IP address would be useful to the user. Marking as wontfix.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
The rationale was some users were experiencing issues with their ISP assigning IP addresses in conjunction to the “restrict to this IP” check box.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: