We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5730fb commit aa20ae6Copy full SHA for aa20ae6
conditional/util/auth.py
@@ -2,7 +2,8 @@
2
3
from flask import request, session, redirect
4
5
-from conditional import auth, app
+from conditional import auth
6
+from conditional.blueprints.packet import packet_bp
7
from conditional.util.ldap import (
8
ldap_is_active,
9
ldap_is_alumni,
@@ -103,14 +104,14 @@ def frosh_auth():
103
104
return
105
106
-@app.route("/auth/csh")
107
+@packet_bp.route("/auth/csh")
108
@auth.oidc_auth("csh")
109
def csh_login():
110
session["provider"] = "csh"
111
return redirect("/packet", code=301)
112
113
-@app.route("/auth/frosh")
114
+@packet_bp.route("/auth/frosh")
115
@auth.oidc_auth("frosh")
116
def frosh_login():
117
session["provider"] = "frosh"
0 commit comments