bug fixes
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 6 Sep 2019 01:19:26 +0000 (20:19 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 6 Sep 2019 01:19:26 +0000 (20:19 -0500)
.gitignore
Tuprules.tup [deleted file]
codebox/Tuprules.tup [new file with mode: 0644]
codebox/controllers/account/register.moon
docker-compose.yaml
executer/Tuprules.tup [new file with mode: 0644]

index ca9a1b8bff4058b408692613001d0c26471a416d..fa6efdd48ea360b381069383af8c878e3c791fff 100644 (file)
@@ -1,3 +1,4 @@
 config.env
 .tup/
-.vscode/
\ No newline at end of file
+.vscode/
+data/
\ No newline at end of file
diff --git a/Tuprules.tup b/Tuprules.tup
deleted file mode 100644 (file)
index 5cabe65..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-: foreach *.coffee |> coffee -c -o %B.js %f |> %B.js
-: foreach *.moon |> moonc %f |> %B.lua
diff --git a/codebox/Tuprules.tup b/codebox/Tuprules.tup
new file mode 100644 (file)
index 0000000..5cabe65
--- /dev/null
@@ -0,0 +1,2 @@
+: foreach *.coffee |> coffee -c -o %B.js %f |> %B.js
+: foreach *.moon |> moonc %f |> %B.lua
index 0f3bc6b0490f3c1350d0200f16ee54ae73ebdff5..9c2959661fbdbb7f9e664b57c8a62a8472a0684d 100644 (file)
@@ -17,9 +17,9 @@ make_controller
                @flow 'csrf_validate'
 
                assert_valid @params, {
-                       { "username", exists: true, min_length: 2, matches_pattern: "%S+" }
+                       { "username", exists: true, min_length: 2, matches_pattern: "^%w+$" }
                        { "nickname", exists: true, min_length: 2 }
-                       { "email", exists: true, min_length: 4, matches_pattern: "%S+@%S+%.%S+" }
+                       { "email", exists: true, min_length: 4, matches_pattern: "^%S+@%S+%.%S+$" }
                        { "password", exists: true, min_length: 2 }
                        { "password_confirmation", exists: true, min_length: 2, equals: @params.password, 'Passwords must be the same' }
                }
index 195f1284f7b7f7c164842836cd0d37a284f10f23..ce1d1bd760ed8671201868a66a70a8fdda2b4103 100644 (file)
@@ -41,8 +41,12 @@ services:
     postgres:
         env_file:
             - config.env
+        environment:
+            PGDATA: /var/lib/postgresql/data/pgdata
         image: "postgres:12-alpine"
         restart: always
+        volumes:
+            - ./data:/var/lib/postgresql/data/pgdata
         networks:
             appnet:
                 ipv4_address: 192.168.0.2
diff --git a/executer/Tuprules.tup b/executer/Tuprules.tup
new file mode 100644 (file)
index 0000000..d3dceca
--- /dev/null
@@ -0,0 +1 @@
+: foreach *.coffee |> coffee -c -o %B.js %f |> %B.js
\ No newline at end of file