Commit Graph

23 Commits (a01cb8b489f42decef05c6536ad04ecb3e45cf28)

Author SHA1 Message Date
~erin a01cb8b489
Remove deprecated functions 2021-07-23 09:48:57 -04:00
~erin 78cae7a5ac
Add error handling to database functions, use db_read_user() 2021-07-23 09:42:33 -04:00
~erin 786a4100f2
Add basic support for moderation actions, delete previous user before changing name 2021-07-23 07:55:24 -04:00
~erin 36846b2eab
Add structs and enums in src/auth.rs into seperate file 2021-07-22 17:31:18 -04:00
~erin 49d307a3b6
Add user roles 2021-07-22 17:17:55 -04:00
~erin a1c5fa42a7
Add logout API 2021-07-22 14:23:59 -04:00
~erin fe2a63afed
Use session_token for most actions, fail on NULL token 2021-07-22 13:01:30 -04:00
~erin 196a344376 Switch to private cookies, and make other cookie improvements
Signed-off-by: Erin Nova <erin@the-system.eu.org>
2021-07-22 11:44:31 -04:00
~erin 6f18959e9c
Use database for storing users 2021-07-22 11:01:07 -04:00
~erin 3636de139f
Set cookie for username 2021-07-22 09:31:31 -04:00
~erin 244c185fc8 Broken code 2021-07-20 11:08:43 -04:00
~erin f67e856169
Add json api for changing user details 2021-07-18 16:42:09 -04:00
~erin 0faffb5b3a
Fix newline error in users.json maybe? 2021-07-18 14:11:54 -04:00
~erin de0d7c2b43
Set token as cookie 2021-07-18 13:26:26 -04:00
~erin 3a264df20f
Serve frontend code 2021-07-18 13:16:00 -04:00
~erin 376fe024ca
Switch to returning json for all http requests 2021-07-18 12:06:05 -04:00
Charlotte Som 117ee9935e Run 'cargo fmt' 2021-07-18 01:33:22 +01:00
Charlotte Som d7f0747090 Backport to Rocket v0.4, fix all warnings & errors 2021-07-18 01:32:57 +01:00
~erin fd0405f55a
Broken code please help I'm dumb 2021-07-17 19:41:41 -04:00
~erin a9dd8088de
Update API docs 2021-07-17 15:59:58 -04:00
~erin 7fa849edf9
Move file functions to seperate file 2021-07-17 15:53:10 -04:00
~erin c70940c649
Add setup for chat core, add proper logging 2021-07-17 14:45:52 -04:00
~erin 4520b3bd34
Rename project & split into multiple files 2021-07-17 11:40:05 -04:00