feature/verified (#61)

* add store methods for verification

* add verify rest and auth

* lint: fix double conversion of userID key

* test for middleware, fix log without auth info

* make all scripts with -e
This commit is contained in:
Umputun
2018-05-29 23:07:50 -05:00
committed by GitHub
parent de60edfa61
commit 0363fc4cd9
20 changed files with 260 additions and 59 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
echo "import backup file $1 to site $2"
echo "unpack $1"
@@ -8,4 +9,4 @@ size=`stat -c "%s" /tmp/backup.remark`
echo "source file size ${size}"
curl -X POST -H "Content-Type: application/json" --data-binary @/tmp/backup.remark "http://127.0.0.1:8081/api/v1/admin/import?site=${2}&provider=native&secret=${SECRET}"
rm -fq /tmp/backup.remark
rm /tmp/backup.remark