1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-12-24 19:48:35 -05:00
Commit Graph

24 Commits

Author SHA1 Message Date
5f2320a492
Fix rate limiting middleware 2018-12-26 21:01:15 -05:00
69cba82d75
Add rate limiting instead of fail2ban 2018-12-26 20:47:04 -05:00
f1437f16a9
Use ip instead of remoteAddress for logging 2018-12-26 19:30:42 -05:00
e4684384ea
Add newline to auth logging 2018-12-26 19:15:29 -05:00
19d8d026fe
Add auth failure logging 2018-12-26 19:02:59 -05:00
93b62ee703
Fix extraneous upload logic and test 2018-08-14 08:30:46 -04:00
b8d40032ca
Add banned field and tests to User 2018-08-12 05:30:50 -04:00
0ab946031e
rename auth to requireAuth 2018-08-01 17:26:02 -04:00
827072212d
Separate middleware from verifyBody logic into bodyVerifier 2018-08-01 17:11:08 -04:00
dbc37490fb
Promisalate body verification code 2018-08-01 13:07:52 -04:00
21fe0de46d
Extend body verifier to sanitize, regex trim, and length check 2018-08-01 12:34:15 -04:00
50f37fd1a2
Rewrite upload code to phase out Multer, allowing for more granular control 2018-07-29 20:08:52 -04:00
f7d51650c1
Separate out logic in requireAuth and make one unified auth.js include 2018-07-29 19:59:24 -04:00
2e268c83cb
Only perform type and instance check if prop exists 2018-07-28 16:53:02 -04:00
740c153093
create verifyBody middleware factory to abstract request validation 2018-07-28 16:49:54 -04:00
7d39001a01
Allow canonicalize to take either displayname or username from request 2018-07-28 12:44:06 -04:00
4770fd3178
Add custom authenticator in upload.js 2018-07-28 12:19:38 -04:00
230f9c2415
Add check for undefined in canonicalize middleware 2018-07-27 14:08:41 -04:00
094a45b6be
Change requireAuth to only export itself 2018-07-27 14:08:02 -04:00
a8acf85052
Change wrap to only export itself 2018-07-26 21:52:47 -04:00
7441eaaf02
Make use of username/displayname field consistent throughout api 2018-07-26 19:40:42 -04:00
d0b26a7021
Make requireAuth() add request variables 2018-07-26 13:15:54 -04:00
0db0caf422
Add ping api route and test for valid session 2018-07-25 21:34:16 -04:00
2e7ca23d9f
Rewrite User tests to be async 2018-07-25 18:45:38 -04:00