Commit Graph

57 Commits

Author SHA1 Message Date
csd4ni3l 91a916f682 remove english words and use numbers instead, fix XSS 2025-10-24 18:08:15 +02:00
csd4ni3l ab43d9bceb rename delete_data to delete_account 2025-08-15 17:18:32 +02:00
csd4ni3l 2414034cee fix salt and password not being decoded when changing password 2025-08-15 17:14:45 +02:00
csd4ni3l 7d7bf75351 add more checks to password changing 2025-08-15 17:11:26 +02:00
csd4ni3l d66290d935 fix achievements not shown in in profile and also make profile dark mode 2025-08-15 16:57:33 +02:00
csd4ni3l eef9e5eef1 convert last_grass_touch_time to float so it can subtract in jinja2 2025-08-15 16:05:53 +02:00
csd4ni3l 9ecb9b8c9a Add now arg to fix time.time issue to profile parameters in your own account as well 2025-08-15 16:04:19 +02:00
csd4ni3l c25927d002 Fix profile crashing cause time.time doesnt exist inside jinja2 2025-08-15 16:02:55 +02:00
csd4ni3l 3cca37f814 Add achievements, profile and profile settings, add flash when accessing unathorized content 2025-08-15 15:56:11 +02:00
csd4ni3l c6e5287c5a fix flash not using error category 2025-08-14 13:55:21 +02:00
csd4ni3l 87bb7514af Check if user is logged in check_banned 2025-08-14 13:53:00 +02:00
csd4ni3l 4e5de6d657 fix missing comma in check_banned 2025-08-14 13:51:07 +02:00
csd4ni3l 1c9bb38848 Check if user is banned, log them out and then flash them with a funny message which is handled by error modals 2025-08-14 13:49:33 +02:00
csd4ni3l 3db4310a1d commit after applying bans to make it work 2025-08-14 13:33:13 +02:00
csd4ni3l 521ad45591 convert time str to float before comparing to time 2025-08-14 13:28:55 +02:00
csd4ni3l f5ab1dd78d fix check_grass_touching_bans crashing due to not using app context 2025-08-14 13:25:22 +02:00
csd4ni3l f61ca26ce5 add red color to people who got banned on leaderboard 2025-08-14 13:22:04 +02:00
csd4ni3l aaeae000c9 fix grass touch submitting not working due to missing set keyword 2025-08-14 13:15:31 +02:00
csd4ni3l 9cabe3a21a Fix logout giving internal server error. 2025-08-14 12:13:38 +02:00
csd4ni3l 16766552c1 fix grass touching submit page not showing file input by default and trying to get username from an input that doesnt exist. 2025-08-14 12:08:15 +02:00
csd4ni3l d78b5e702e fix grass touching submit page 2025-08-14 12:03:51 +02:00
csd4ni3l fdb30a7f86 Add grass touching bans (which dont work yet), grass touching submit page which if used, increments the grass touching count and last grass touching, make it so only one error shows up if it fails and multiple errors cant. 2025-08-14 11:50:11 +02:00
csd4ni3l 2775f3bfec fix logout not redirecting and make the unathorized redirect to login 2025-08-12 18:19:44 +02:00
csd4ni3l f033c9da62 make the pages global and add navbar to each of them and dont require authentication, also add logout button 2025-08-12 18:18:22 +02:00
csd4ni3l ed8fef70e5 Fix incorrect text giving back 200 instead of 400 2025-08-12 16:48:20 +02:00
csd4ni3l ef2fb30106 put challenge completed at the end of submitting a challenge 2025-08-12 16:45:22 +02:00
csd4ni3l d78bf7f26b only return text in generate_challenge 2025-08-12 16:42:12 +02:00
csd4ni3l 20350d0e85 FIx registering not working by now redirecting to register and challenges having a completed attribute 2025-08-12 16:38:11 +02:00
csd4ni3l ea4e4899d0 fix generate_challenge not working due to wrong method and only get the challenge if a username was supplied 2025-08-12 15:55:30 +02:00
csd4ni3l 27f379e0ca remove accidental debug flag(again) 2025-08-12 15:18:31 +02:00
csd4ni3l 623bd155cb fix leaderboard looks, add OCR, make the captcha only show if you add a username and password 2025-08-12 15:17:43 +02:00
csd4ni3l 453250b862 update register fields i missed 2025-08-10 17:01:09 +02:00
csd4ni3l 0307999db7 remove accidental debug flag i left in 2025-08-10 16:58:48 +02:00
csd4ni3l ba9898a44a add new fields to user so we can track grass touching activity later, add part of the application part which currently includes a homepage and a leaderboard 2025-08-10 16:57:55 +02:00
csd4ni3l 09defab6bc fix wrong commas in database schema 2025-08-09 14:29:29 +02:00
csd4ni3l 5da21d3462 fix wrong order of values in insert 2025-08-09 14:26:55 +02:00
csd4ni3l 3d2dd3d8de change order of values in image insert 2025-08-09 14:25:07 +02:00
csd4ni3l 3309fb840e make image hash the primary key of the images table 2025-08-09 14:22:41 +02:00
csd4ni3l c34e73d583 revert to not using flashed messages 2025-08-09 14:19:58 +02:00
csd4ni3l 27636a4429 add unathorized access flash 2025-08-09 13:03:54 +02:00
csd4ni3l dc93c229d4 convert image uuid into string before using it 2025-08-09 12:47:58 +02:00
csd4ni3l 638193fcda Fix username not gathered in the upload route 2025-08-09 12:46:57 +02:00
csd4ni3l c0eb5b59dd show error messages instead of Unknown Error, add an Images table so now the same images cant be uploaded multiple times 2025-08-09 12:42:02 +02:00
csd4ni3l 54ed6eb0f4 Add experimental sqlite database and login/register 2025-08-09 12:22:01 +02:00
csd4ni3l 3d5ea65b16 remove username field which does not exist in upload route 2025-08-09 11:41:43 +02:00
csd4ni3l 104b87d555 fix png not working because of removing too many bytes of data url header 2025-08-09 11:39:11 +02:00
csd4ni3l bf1decc912 decrease image size for faster verification and less token usage 2025-08-08 23:30:51 +02:00
csd4ni3l 7b7b23bbc0 fix image resizing requiring 2 paths instead of 1 2025-08-08 23:27:21 +02:00
csd4ni3l e2f39aa3c9 Add minimum cosine similarity constant and increase it, resize image files after saving and before sending to Jina 2025-08-08 23:24:43 +02:00
csd4ni3l f0b3a73a6d remove debug print and replace http with https 2025-08-08 19:27:22 +02:00