Commit Graph

20 Commits (c34fffc2c48b82e7c7aa2f139850c2917fc36438)

Author SHA1 Message Date
Dessalines 49bd28e2d4
Adding visual captchas for register and login. (#1027)
* Adding visual captchas for register and login.

* Adding audio wav file for Captcha using espeak.

* Lots of captcha fixes.

- Removed login captchas.
- Added settings to disable captchas, and change difficulty.
- Captchas can only be checked / used once, front end gives a new one on
  failure.
- Added front end button for regenerating captcha.
- Added a disabled / pause button audio playing.

* Some more fixes.
4 years ago
Dessalines d1342afe93
Remove extra jwt claims (for user settings) (#1025)
* Remove extra jwt claims (for user settings)

- The JWT token only contains the issuer, and your user id now.
- Now only a page refresh is necessary to pick up your settings on all
  clients, including theme, language, etc.
- GetSiteResponse now gives you your user and settings if logged in.
- Fixes #773

* Remove extra comment line, I tested nsfw

* Adding a todo to add a User_::readSafe()
4 years ago
Dessalines 59da2976ab Some more API cleanup.
- Extracted methods for is_mod_or_admin, and is_admin.
- Removed admins from GetPostResponse and GetCommunityResponse.
- Some cleanup.
4 years ago
Dessalines b6a6d52a92 Merge branch 'main' into api_edit_separation 4 years ago
Dessalines f81a7ad9ab Adding form_id to comment creates and edits.
- This adds a form_id to CreateComment, EditComment, and CommentResponse
- This is so any front end clients can add a randomly generated string,
  and know which comment they submitted, is the one they're getting
  back.
- This gets rid of all the weird complicated logic in handleFinished(),
  and should stop the comment forms getting cleared once and for all.
4 years ago
Dessalines 4b6a762a56 Added an is_mod_or_admin function to Community 4 years ago
Dessalines 55ce7b1339
Adding version to GetSite. Fixes #1001 (#1002)
* Adding version to GetSite. Fixes #1001

* Removing version.ts file
4 years ago
Dessalines 2eac037408 Adding post delete, remove, lock, and sticky. 4 years ago
Dessalines fd96dfdb5e Added comment delete, remove, read. 4 years ago
Dessalines 9bc6698f58 Added community delete and remove. 4 years ago
Dessalines a67f46bec5 EditUserMention changed to MarkUserMentionAsRead. 4 years ago
Dessalines 0a28ffb9c4 Private message delete and read extracted. 4 years ago
Dessalines 78cb306c07
Don't allow community name editing. Fixes #964 (#973) 4 years ago
Dessalines 7556f8615f
Adding a community_name option to GetPosts /post/list . Fixes #800 (#942) 4 years ago
Lorenz Schmidt a3a55dd195
Indicate unstable API in README and mdbook (#781) 4 years ago
Dessalines bb287cbd07 Adding an admin settings page.
- Fixes #620
- Adding a UserListing component. Fixes #627
4 years ago
Dessalines 894a80eb88 Reworking README.md. Fixes #513. 4 years ago
Dessalines b45c83682c Fixing http curl POST docs. 4 years ago
Dessalines 7914fd949c Fixing last. 4 years ago
Dessalines e094ae0208 Updating API docs. 4 years ago