From f569c3adb6ac872f261411f018f158d16730071e Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 22 Jan 2020 13:43:07 +0100 Subject: [PATCH] Require password for all pages (if not running in public mode) See https://github.com/photoprism/photoprism/issues/167#issuecomment-574866401 Signed-off-by: Michael Mayer --- frontend/src/component/p-navigation.vue | 35 ++++++++++++++----------- frontend/src/pages/login.vue | 4 +-- frontend/src/routes.js | 32 +++++++++++----------- internal/api/album.go | 8 ++++-- internal/api/geo.go | 5 ++++ internal/api/label.go | 5 ++++ internal/api/photo_search.go | 5 ++++ internal/api/zip.go | 5 ++++ internal/entity/location.go | 4 +-- internal/entity/photo.go | 6 ++--- internal/entity/place.go | 8 +++--- internal/server/logger.go | 8 +++--- 12 files changed, 76 insertions(+), 49 deletions(-) diff --git a/frontend/src/component/p-navigation.vue b/frontend/src/component/p-navigation.vue index 5e80ecf80..ca5ca6252 100644 --- a/frontend/src/component/p-navigation.vue +++ b/frontend/src/component/p-navigation.vue @@ -42,7 +42,7 @@ - + photo @@ -54,7 +54,7 @@ - + @@ -89,7 +89,7 @@ - + archive @@ -101,7 +101,7 @@ - + folder @@ -113,7 +113,7 @@ - + @@ -133,7 +133,7 @@ - + favorite @@ -146,7 +146,7 @@ - + label @@ -159,7 +159,7 @@ - + place @@ -172,7 +172,7 @@ - + color_lens @@ -184,7 +184,7 @@ - - - + camera_roll @@ -216,7 +216,7 @@ - + settings @@ -228,7 +228,7 @@ - + power_settings_new @@ -240,7 +240,7 @@ -