diff --git a/admin/admin.go b/admin/admin.go index cfdc821..7dbb640 100644 --- a/admin/admin.go +++ b/admin/admin.go @@ -140,7 +140,7 @@ func EditUser() common.Handler { Message: fmt.Sprintf("error executing sqlite3 statement: %v", err), StatusCode: http.StatusInternalServerError, } - } + } } fmt.Println(hash) if bcrypt.CompareHashAndPassword([]byte(hash), []byte(password)) != nil { diff --git a/assets/config/users.db b/assets/config/users.db index e5f311a..ef24a39 100644 Binary files a/assets/config/users.db and b/assets/config/users.db differ diff --git a/assets/web/static/app.js b/assets/web/static/app.js index 59d2e1d..bf81fbd 100644 --- a/assets/web/static/app.js +++ b/assets/web/static/app.js @@ -15,8 +15,13 @@ const episodepublishform = { ` } +const message = { + template: `

{{ this.$route.params.message }}

` +} + const userlist = { template: `
+ New @@ -72,6 +77,26 @@ const userlist = { } } +const usernew = { + template: `
+
+

New User

+
+ + + + + + + + + +
+ +
+
` +} + const useredit = { template: `
@@ -301,7 +326,9 @@ const routes = [ { path: '/theme', component: customcss }, { path: '/edit/:id', component: episodeedit }, { path: '/users/', component: userlist }, - { path: '/user/:id', component: useredit } + { path: '/msg/:message', component: message }, + { path: '/user/:id', component: useredit }, + { path: '/users/new', component: usernew } ] const router = new VueRouter({
Username