1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-12-03 10:59:13 -05:00
Commit Graph

140 Commits

Author SHA1 Message Date
b8d40032ca
Add banned field and tests to User 2018-08-12 05:30:50 -04:00
a395485f09
Update view.js route 2018-08-01 20:25:00 -04:00
cc788d10e4
Update keys.js route 2018-08-01 18:57:45 -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
c23c9b345e
Clean Invites route 2018-08-01 12:20:35 -04:00
49b77c5c03
Clean up routes folder 2018-08-01 11:54:35 -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
1d2a493258
Add salt length and hash iterations config for User model 2018-07-29 19:38:29 -04:00
179bed8924
Fix login body verification 2018-07-29 11:00:14 -04:00
456cac6b17
Verify the request before attempting to canonicalize it 2018-07-29 10:57:27 -04:00
cc84fdb20c
Rewrite auth router to use middleware for verification 2018-07-28 18:22:48 -04:00
28555cff3f
Remove auth checking from routes.js 2018-07-28 17:13:50 -04:00
d6aa85ae80
Redo invite API routes and add full testing suite 2018-07-28 17:13:19 -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
9227fa428d
Add checks for bad requests in auth.js to prevent 500 2018-07-28 12:53:49 -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
e7eafef605
Remove inviteCount field 2018-07-27 14:56:06 -04:00
001be23d00
Add uploaded message 2018-07-27 14:26:55 -04:00
c9e250a68e
Change exp field to expires 2018-07-27 14:23:23 -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
f97070452b
Fix view route and add mimetype inline whitelist 2018-07-26 21:53:15 -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
82e9989b2b
Fix some warnings 2018-07-26 19:01:16 -04:00
8bfec46001
Replace constants with configurable values 2018-07-26 17:34:47 -04:00
eda74de1de
Fix upload size bug in upload.js and add more tests 2018-07-26 16:54:08 -04:00
827c4cdbfa
Remove redundant info in Upload model 2018-07-26 16:51:27 -04:00
15db9a47ba
Redo uploading and tests 2018-07-26 13:17:37 -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
c246d3738a
Reduce pbkdf2 iterations 2018-07-25 18:45:08 -04:00
ce99433afc
Properly async-ify registration code 2018-07-25 01:45:05 -04:00
c0f924bb59
Fix username in use check and whitespace sanitization 2018-07-24 19:37:49 -04:00
150b736071
Add unit shortening to users page 2018-01-15 18:14:37 -05:00
c7e58c490f
Improve scope checking readability 2018-01-15 18:13:59 -05:00
098865cbbf
Fix file permissions 2018-01-15 17:13:35 -05:00
26cc9bf6ef
Refactor all base auth routes, allowing for case insensitivity and unicode usernames. 2018-01-15 15:29:32 -05:00
4b4d32ec9c
Add scope middleware to invites 2018-01-15 11:48:58 -05:00
6c89cdd29e
Add scope requirements to API creation 2018-01-15 11:48:36 -05:00
4093d8c6f3
Add UserSvc and UserCtrl 2018-01-15 11:46:49 -05:00
c2916b7f6d
Add users api route 2018-01-15 11:45:52 -05:00
0625e63595
Check for success instead of not failure for redirect 2018-01-15 10:10:48 -05:00
d3de95c5dc
Update button shake for registering 2018-01-15 10:10:01 -05:00
695696965c
Add missing semicolon 2018-01-14 10:37:07 -05:00
f64fb3526b
Remove unneeded fs and path modules 2018-01-14 10:36:40 -05:00
90c38f0371
Remove unused next parameters 2018-01-14 10:36:26 -05:00
b4acbee16d
Optimize margin statements 2018-01-14 10:36:07 -05:00
2120586fc0
Remove AuthSvc dependency from UploadComp 2018-01-14 10:32:22 -05:00
2d3e2615ee
Remove unneeded error parameter for login form 2018-01-14 10:32:04 -05:00
1d2987bf22
Add base for invite creation/viewing page 2018-01-14 10:27:37 -05:00
57e2ee6854
Clean up, clarify, and add comments to ApiCtrl/Svc 2018-01-14 10:27:05 -05:00
3fcc801652
Create InviteCtrl 2018-01-14 10:25:46 -05:00
a00764316d
Add invites API route 2018-01-14 09:52:40 -05:00
6f707138f6
Create InviteSvc 2018-01-14 09:52:00 -05:00
9e36c3c244
Add hasOwnProperty checks to ApiSvc 2018-01-14 09:50:54 -05:00
8b06a715cd
Remove $window dependency from ApiSvc 2018-01-14 09:24:40 -05:00
c09aaf55ec
Change json parse error code to 500 2018-01-14 09:23:51 -05:00
a529691fb1
Add button shake on invalid login 2018-01-13 19:06:52 -05:00
24ba7b6eb3
Update homepage video and style 2018-01-13 17:59:07 -05:00
bf2eb3b251
Add hasOwnProperty checks to AuthSvc 2018-01-13 17:36:40 -05:00
86b7de2039
Update file permissions 2018-01-13 17:20:14 -05:00
Jack
ebfbcbe2ce
Allow uploading via API key 2017-10-22 12:19:51 -04:00
Jack
ae4687c1c1
Finish key creation/deletion 2017-10-21 17:47:55 -04:00
Jack
5917e75dda
Small auth fixes 2017-10-21 15:10:55 -04:00
Jack
dc470fd131
Finish keyInfo modal and API routes 2017-10-21 15:10:24 -04:00
Jack
88f8a3fcef
Rework directory structure 2017-10-20 16:46:14 -04:00
Jack
f1e9e7e78b Work on stuff 2017-10-18 13:31:08 -04:00
Jack
ce210c94c6
Proper auth requirements to some pages 2017-10-14 17:55:57 -04:00
Jack
3bba0a7f53
Add fallback cookie auth method 2017-10-14 17:49:11 -04:00
Jack
1c97b75667
Restructure and add video index 2017-10-14 15:16:58 -04:00
Jack
f14fac18ec
Strip tags from usernames and update tests 2017-10-14 15:15:27 -04:00
Jack
5ffc93b147
Add upload and view stats 2017-10-14 15:13:50 -04:00
Jack
907478e6f1
Add file size verification in upload script 2017-10-13 18:07:52 -04:00
Jack
3f75f3d59b
Add a check for upload permission 2017-10-13 16:16:48 -04:00
Jack
aa615cd570
Fix bug where user scope wouldn't be set in the JWT 2017-10-13 16:16:26 -04:00
Jack
e01051f97f
Fix auth code 2017-10-12 17:25:34 -04:00
Jack
fac4dfe5f6
Clean up and parallelize auth code 2017-10-12 12:50:02 -04:00
Jack
53bf056bc5
Add auth to login and start panel 2017-10-11 20:26:07 -04:00
Jack
616b12d55a
Add login page 2017-10-11 13:11:57 -04:00
Jack
e6a09bbe40
Add invite codes for registering 2017-10-11 12:55:46 -04:00
Jack
8251900309
Work on stuff... 2017-10-11 10:15:19 -04:00
Jack
659792e71b
Initial Commit 2017-10-09 22:01:02 -04:00