You are browsing as a guest. Sign up (or log in) to start making projects!

1h 20m 40s logged

It works! (Also I learned you can do markdown here)

https://fries.hackclub.app/
Yesterday I did a good bit of work on actually making it work lol. I did a lot of work out and about just on GitHub’s website, so when I came back there was a lot needed to get everything working. Mainly when I refactored some of the code into functions in a different file, I completely broke the login. But a little more in-depth about Cami. When you post {"username":"<str>","password":"<str>"} to either register or login, you get back a token. This token is based off your user-id and gets refreshed every time you login (also supposed to be after a day just unimplemented right now.) You then use this to authenticate with (the only commands that need it right now) /changepass or /updatebio. You can also, as shown in the image below, run /GET on /user?user=(username or user id). That’s pretty much the full run down honestly. Passwords are currently hashed with SHA256, although I need to find a better option as I was able to brute force reverse my 8 letter password on the web in <1 minute. :(

1
443

Comments 4

@barfpile

Also added a homepage that just points to the docs.

@barfpile

fries: 1 is a sort of currency btw. you’ll get it daily and from lil minigames.

@armadillomike

amazing project you are making

@barfpile

thanks man i just updated it with the code i was referencing in this