From 284327e7c7e3fbca184b5d8384a590ae1c1896fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Mon, 11 Nov 2024 18:57:39 +0100 Subject: [PATCH 1/3] Make the toplevel title a link to the homepage ("Guichet Deuxfleurs") --- templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/layout.html b/templates/layout.html index 3f9851d..9c35ad3 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -10,7 +10,7 @@
-

Guichet Deuxfleurs💮💮

+

Guichet Deuxfleurs💮💮


{{template "body" .}}
From e13e832abeb2cbae28735e38037b2fc7006b3008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Mon, 11 Nov 2024 20:04:35 +0100 Subject: [PATCH 2/3] invitation codes: tweak argon2 params to consume less memory --- invite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invite.go b/invite.go index 060947a..24e5fbe 100644 --- a/invite.go +++ b/invite.go @@ -350,8 +350,8 @@ func readCode(code string) (code_id string, code_pw string) { } } - id_hash := argon2.IDKey([]byte(code_digits), []byte("Guichet ID"), 2, 64*1024, 4, 32) - pw_hash := argon2.IDKey([]byte(code_digits), []byte("Guichet PW"), 2, 64*1024, 4, 32) + id_hash := argon2.IDKey([]byte(code_digits), []byte("Guichet ID"), 3, 40*1024, 4, 32) + pw_hash := argon2.IDKey([]byte(code_digits), []byte("Guichet PW"), 3, 40*1024, 4, 32) code_id = hex.EncodeToString(id_hash[:8]) code_pw = hex.EncodeToString(pw_hash[:16]) From dd065c990eff89941f5808d6348add58b18ce480 Mon Sep 17 00:00:00 2001 From: ADRN Date: Mon, 20 Jan 2025 15:13:18 +0100 Subject: [PATCH 3/3] in 'informations de connexion': added / to so as to upload to the root and not to subdir --- templates/garage_website_inspect.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/garage_website_inspect.html b/templates/garage_website_inspect.html index 6182f0d..98df161 100644 --- a/templates/garage_website_inspect.html +++ b/templates/garage_website_inspect.html @@ -262,7 +262,7 @@ hugo deploy

Déployer le dossier local public sur le site web {{ .View.Name.Pretty }} :

-scp -oHostKeyAlgorithms=+ssh-rsa -P2222 -r ./public {{ .Describe.Username }}@sftp.deuxfleurs.fr:{{ .View.Name.Pretty }}/
+scp -oHostKeyAlgorithms=+ssh-rsa -P2222 -r ./public/ {{ .Describe.Username }}@sftp.deuxfleurs.fr:{{ .View.Name.Pretty }}/