From ee30e7711f8aebbb36b657d8cca4bee7968843e0 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 11 Sep 2017 09:00:59 +0100 Subject: [PATCH] implement recaptcha on login Former-commit-id: d7495b6fff4a99a8d155a3be87b15535a74a1305 [formerly 5b3a544447cca0d1cdcb6c87ca94f450a5493506] [formerly b4de1a4f5d4dd295c98366ede2b87bf2cb7918f9 [formerly 002f8066c794c9c440ec437743f6ddfa864f976b]] Former-commit-id: c0e5d38111a99f8e3e71fb5db86e19b7ba44ec48 [formerly 1b5e454263ba64ced95c6d4b51f5f32e66f74758] Former-commit-id: cfb17a53fc86d0071fba91503502444f5f10a0c7 --- assets/index.html | 5 ++++ assets/src/App.vue | 42 ++++++++++++++++++++++------ assets/src/css/login.css | 8 ++++++ assets/src/router/index.js | 10 ++----- assets/src/store/index.js | 1 + assets/src/utils/auth.js | 4 +-- assets/src/views/Login.vue | 35 +++++++++++++++++++++-- caddy/parser/parser.go | 24 +++++++++++++--- filemanager.go | 4 +++ http/auth.go | 57 +++++++++++++++++++++++++++++++++++++- http/http.go | 11 +++++--- rice-box.go.REMOVED.git-id | 2 +- 12 files changed, 173 insertions(+), 30 deletions(-) diff --git a/assets/index.html b/assets/index.html index 8f173ac0..5ef39dd3 100644 --- a/assets/index.html +++ b/assets/index.html @@ -8,6 +8,7 @@ + File Manager @@ -27,6 +28,10 @@ + {{ if .ReCaptcha -}} + + {{ end }} + <% for (var chunk of webpack.chunks) { for (var file of chunk.files) { if (file.match(/\.(js|css)$/)) { %> diff --git a/assets/src/App.vue b/assets/src/App.vue index 88916ace..ba1aa39d 100644 --- a/assets/src/App.vue +++ b/assets/src/App.vue @@ -1,22 +1,48 @@