email/pass login with sqlite db
This commit is contained in:
9
create-user.sh
Executable file
9
create-user.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
read -rp 'email: ' EMAIL
|
||||
read -rp 'password: ' PASSWORD
|
||||
|
||||
ENCPASS=$(echo -n $PASSWORD | sha256sum)
|
||||
ENCPASS=${ENCPASS% -}
|
||||
|
||||
sqlite3 pairgoth.db "INSERT INTO cred (email, password) VALUES ('$EMAIL', '$ENCPASS')"
|
Reference in New Issue
Block a user