HackMD/lib/web
Sheogorath 638eae0dfb
Add check for undefined UUID
This check is needed at there are tons of LDAP implementations out there
and none has at least one guaranteed unique field. As we currently check
three fields and added an option to select one yourself, it's still not
said that any of these fields is set. This will now create an error
and fail the authentication instead of letting people may get access to
other people's notes which are stored under a this way deterministic
wrong userid named `LDAP-undefined`.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-18 00:27:07 +01:00
..
auth Add check for undefined UUID 2018-03-18 00:27:07 +01:00
middleware Rename checkURiValid.js to checkURIValid.js 2017-05-08 20:13:55 +08:00
baseRouter.js refactor(baseRouter.js): Adjust style fit standard 2017-05-08 19:29:06 +08:00
historyRouter.js refactor: Remove require extension filename 2017-05-08 19:29:06 +08:00
imageRouter.js Remove camel case from imageuploadtype in config 2018-01-27 23:50:15 +01:00
noteRouter.js Allow posting new note with content 2018-01-18 10:41:58 +01:00
statusRouter.js refactor(app.js): Extract status pages 2017-05-08 19:24:37 +08:00
userRouter.js refactor(app.js): Extract /me page 2017-05-08 19:24:38 +08:00
utils.js Allow posting new note with content 2018-01-18 10:41:58 +01:00