A simple chat server for maya's stream.
 
 
 
 
 
Go to file
~erin 76039f65cf
Add more info to readme
2021-07-16 14:33:17 -04:00
src Check if new name is already taken before changing 2021-07-16 14:13:21 -04:00
.gitignore Initialize repo with basic functionality 2021-07-16 10:55:07 -04:00
Cargo.lock Add basic hashing functionality 2021-07-16 13:38:05 -04:00
Cargo.toml Add basic hashing functionality 2021-07-16 13:38:05 -04:00
README.md Add more info to readme 2021-07-16 14:33:17 -04:00

README.md

Chat Registration System

The basic backend code needed to register & login to a chat system (to be built). Send it the unhashed username and pin, and it'll store it in the users.json file with the pin hashed with SHA1.

API Documentation

POST /api/register/<name>/<pin> Register the username with the pin provided if it doesn't already exist

GET /api/users/<name> Check if the user exists

GET /api/users/<name>/<pin> Check if the user exists, and if the pin provided matches

POST /api/users/change/<name>/<pin>/<new-name>/<new-pin> Change a users pin/name