Skip to content

Commit 416bc10

Browse files
authored
Merge pull request #398 from Qelxiros/packet-glue
packet glue but even more
2 parents baf42df + e12ddb8 commit 416bc10

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

conditional/util/auth.py

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

33
from flask import request, session, redirect
44

5-
from conditional import auth
6-
from conditional.blueprints.packet import packet_bp
5+
from conditional import auth, app
76
from conditional.util.ldap import (
87
ldap_is_active,
98
ldap_is_alumni,
@@ -104,14 +103,14 @@ def frosh_auth():
104103
return
105104

106105

107-
@packet_bp.route("/auth/csh")
106+
@app.route("/auth/csh")
108107
@auth.oidc_auth("csh")
109108
def csh_login():
110109
session["provider"] = "csh"
111110
return redirect("/packet", code=301)
112111

113112

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

0 commit comments

Comments
 (0)