mirror of
https://github.com/stevenhowes/osgrid-server.git
synced 2026-05-26 15:53:42 +01:00
Somewhat lightweight auth for simple usage counting. Could do with some locking really, but fit for this purpose.
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
TOKEN=`uuidgen`
|
||||
echo $TOKEN
|
||||
MD5=`echo -n $TOKEN | md5sum | awk '{ print $1 }'`
|
||||
echo $MD5
|
||||
echo -n 0 > keys/$MD5
|
||||
Reference in New Issue
Block a user