Skip to content

Commit aa20ae6

Browse files
committed
Revert "Merge pull request #398 from Qelxiros/packet-glue"
This reverts commit 416bc10, reversing changes made to baf42df.
1 parent b5730fb commit aa20ae6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

conditional/util/auth.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
from flask import request, session, redirect
44

5-
from conditional import auth, app
5+
from conditional import auth
6+
from conditional.blueprints.packet import packet_bp
67
from conditional.util.ldap import (
78
ldap_is_active,
89
ldap_is_alumni,
@@ -103,14 +104,14 @@ def frosh_auth():
103104
return
104105

105106

106-
@app.route("/auth/csh")
107+
@packet_bp.route("/auth/csh")
107108
@auth.oidc_auth("csh")
108109
def csh_login():
109110
session["provider"] = "csh"
110111
return redirect("/packet", code=301)
111112

112113

113-
@app.route("/auth/frosh")
114+
@packet_bp.route("/auth/frosh")
114115
@auth.oidc_auth("frosh")
115116
def frosh_login():
116117
session["provider"] = "frosh"

0 commit comments

Comments
 (0)