Store signin data in DB and use random codes

This commit is contained in:
2025-06-22 09:06:33 +03:00
parent 708ca49a35
commit ccbb317189
5 changed files with 95 additions and 82 deletions

View File

@@ -3,9 +3,6 @@ set oldsum (cat (find . \( -name '*.rb' -o -name '*.js' \) | sort) | md5sum)
if not test -e infinsweeper.db
sqlite3 infinsweeper.db < schema.sql
end
if not test -e db.json
echo "{\"account_num\":0,\"pass_num\":0,\"signed_in_users\":{}}" > db.json
end
pkill ruby
ruby main.rb -p8080 &
echo "" > $pipe_path