Skip to content

Commit 97d2932

Browse files
committed
Fixing hardcoded references to instances
1 parent af22d6e commit 97d2932

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packet/templates/mail/packet_start.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2>Hello {{ packet.freshman.name }},</h2>
66
<h3>Welcome to Computer Science House!</h3>
77
<p>Soon you'll starting the introductory process for CSH, and the first part of that is Packet.</p>
88
<p>Your packet will start on <span class="badge">{{ packet.start.strftime('%A, %B %-d') }} at {{ packet.start.strftime('%-I:%M %p') }}</span></p>
9-
<p>You can view your packet at <a href="https://freshen-packet.csh.rit.edu">freshmen-packet.csh.rit.edu</a> with
9+
<p>You can view your packet at <a href="{{ config["PROTOCOL"] + config["PACKET_INTRO"] }}">{{ config["PACKET_INTRO"] }}</a> with
1010
the credentials you should have been sent.</p>
1111
<p>If you don't know your credentials, reach out to an <a href="mailto:[email protected]">RTP</a></p>
1212
<p>If you have any questions about Packet or the introductory process, email <a href="mailto:[email protected]">[email protected]</a></p>

packet/templates/mail/packet_start.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Soon you'll starting the introductory process for CSH, and the first part of tha
66

77
Your packet will start on {{ packet.start.strftime('%A, %B %-d') }} at {{ packet.start.strftime('%-I:%M %p') }}
88

9-
You can view your packet at freshmen-packet.csh.rit.edu with the credentials you should have been sent.
9+
You can view your packet at {{ config["PROTOCOL"] + config["PACKET_INTRO"] }} with the credentials you should have been sent.
1010
If you don't know your credentials, reach out to an RTP
1111

1212
If you have any questions about Packet or the introductory process, email [email protected]

packet/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def wrapped_function(*args, **kwargs):
6363
username = str(session["userinfo"].get("preferred_username", ""))
6464
if ldap_is_intromember(ldap_get_member(username)):
6565
app.logger.warn("Stopped intro member {} from accessing upperclassmen packet".format(username))
66-
return redirect("https://freshmen-packet.csh.rit.edu", code=301)
66+
return redirect(app.config["PROTOCOL"] + app.config["PACKET_INTRO"], code=301)
6767

6868
return func(*args, **kwargs)
6969

0 commit comments

Comments
 (0)