From e61bcb91c43a13c7d5426806d85875d205f49475 Mon Sep 17 00:00:00 2001 From: gmemstr Date: Sat, 15 Jul 2017 08:06:37 -0700 Subject: [PATCH] Basic HTTP authentication Implemented basic login using standard WWW-Authenticate method --- admin.go | 10 ++++++++++ assets/admin.html | 1 + assets/index.html | 2 +- webserver.go | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 admin.go create mode 100644 assets/admin.html diff --git a/admin.go b/admin.go new file mode 100644 index 0000000..2d4d6a3 --- /dev/null +++ b/admin.go @@ -0,0 +1,10 @@ +package main + +import ( + "io/ioutil" + "fmt" +) + +func CreateEpisode() { + +} \ No newline at end of file diff --git a/assets/admin.html b/assets/admin.html new file mode 100644 index 0000000..7fc564d --- /dev/null +++ b/assets/admin.html @@ -0,0 +1 @@ +admin.html \ No newline at end of file diff --git a/assets/index.html b/assets/index.html index 36dc2e6..3a6f47d 100644 --- a/assets/index.html +++ b/assets/index.html @@ -13,7 +13,7 @@