summaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'index.go')
-rw-r--r--index.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.go b/index.go
index 91a65b6..35a9840 100644
--- a/index.go
+++ b/index.go
@@ -46,6 +46,7 @@ func handleIndex(w http.ResponseWriter, req *http.Request) {
"index_login",
map[string]string{
"authURL": authURL,
+ "source": config.Source,
/*
* We directly generate the login URL here
* instead of doing so in a redirect to save
@@ -82,6 +83,7 @@ func handleIndex(w http.ResponseWriter, req *http.Request) {
map[string]interface{}{
"authURL": authURL,
"notes": "You sent an invalid session cookie.",
+ "source": config.Source,
},
)
if err != nil {
@@ -104,6 +106,7 @@ func handleIndex(w http.ResponseWriter, req *http.Request) {
"Department": userDepartment,
},
"courses": courses,
+ "source": config.Source,
},
)
if err != nil {