From bbddfaad2d4ad5cabe554e4bbc9061048dab723c Mon Sep 17 00:00:00 2001 From: Sergio Vera Date: Sun, 28 Apr 2024 14:55:50 +0200 Subject: [PATCH] Fixed update password not working --- README.md | 2 +- internal/webserver/embedded/views/users/edit.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cbe53c3..1f0c3ba 100644 --- a/README.md +++ b/README.md @@ -108,4 +108,4 @@ On first run, Coreander creates an admin user with the following credentials: * `WORDS_PER_MINUTE`: Defines a default words per minute reading speed that will be used for not logged-in users. Defaults to 250. * `SESSION_TIMEOUT`: Specifies the maximum time a user session may last, in hours. Floating-point values are allowed. Defaults to 24 hours. * `UPLOAD_DOCUMENT_MAX_SIZE`: Maximum document size allowed to be uploaded to the library, in megabytes. Set this to 0 to unlimit upload size. Defaults to 20 megabytes. - +* `HOSTNAME`: The name of the host the server is running on. diff --git a/internal/webserver/embedded/views/users/edit.html b/internal/webserver/embedded/views/users/edit.html index c9679dd..13cec3f 100644 --- a/internal/webserver/embedded/views/users/edit.html +++ b/internal/webserver/embedded/views/users/edit.html @@ -63,7 +63,7 @@
-
+ {{if eq .Session.Uuid .User.Uuid}}
@@ -98,6 +98,7 @@
+