aboutsummaryrefslogtreecommitdiff
path: root/imgs.go
diff options
context:
space:
mode:
Diffstat (limited to 'imgs.go')
-rw-r--r--imgs.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/imgs.go b/imgs.go
index 4ee448b..4e614e9 100644
--- a/imgs.go
+++ b/imgs.go
@@ -102,8 +102,7 @@ func imgs(w http.ResponseWriter, r *http.Request) {
} else if err != nil {
log.Println(err)
}
- sendFlash(w, r, "redirect", r.URL.String())
- http.Redirect(w, r, "/login", http.StatusSeeOther)
+ unauthorized(w, r)
}
func extractImgsGlob(userDocPath string) ([]Doc, error) {