Fixed bug in directory update.
authorTim Vaughan <plugd@thelambdalab.xyz>
Mon, 1 Jun 2020 17:00:10 +0000 (19:00 +0200)
committerTim Vaughan <plugd@thelambdalab.xyz>
Mon, 1 Jun 2020 17:00:10 +0000 (19:00 +0200)
directory.gmi
register.scm

index fe7b2f8..77c87cc 100755 (executable)
@@ -26,7 +26,7 @@
             (lambda (garden-file)
               (let ((g (with-input-from-file garden-file read)))
                 (update-garden! g)
-                (with-output-to-file garden-file (lambda () write g))
+                (with-output-to-file garden-file (lambda () (write g)))
                 (let ((fields (list (garden-prop 'user g)
                                     (seconds->string (garden-prop 'created g))
                                     (garden-stage g))))
index 71174c2..5aa2e91 100755 (executable)
@@ -9,7 +9,7 @@
         (serve-query "User name")
         (let* ((username (symbol->string (caar query)))
                (hash (string->sha1sum (conc username
-                                            (number->string (pseudo-random-integer 10000))))))
+                                            (number->string (pseudo-random-integer 1000000))))))
           (with-output-to-file (conc "accounts/" hash)
             (lambda ()
               (write (make-garden username))))