Julian Lam
d098e26f82
User Email and email validation API ( #10160 )
...
* feat: wip user emails api
* fix: allow admins with manage-users access to email confirmation api as well
* fix: wrong route path
* docs: openapi spec
2022-01-21 11:20:39 -05:00
Julian Lam
0a41741b7e
refactor: deprecate picture update socket call, new API routes for picture update
2021-09-03 16:59:42 -04:00
Barış Soner Uşaklı
9de64bf516
fix : #9698 , pass along query params in redirect
2021-08-12 11:26:15 -04:00
gasoved
97c8569a79
fix: hide private user data in api/v3/users/[uid]
2021-06-30 17:02:38 -04:00
Julian Lam
d2960aeb09
feat: added GET user route for api v3
2021-05-26 12:35:37 -04:00
Peter Jaszkowiak
23f212a4c0
chore: eslint prefer-destructuring
2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
2021-02-08 18:06:44 -05:00
Julian Lam
a0b7a82350
feat(api): account deletion routes for the Write API ( #8881 )
...
* feat(api): account deletion routes for the Write API
* refactor: rewrite client-side calls to account deletion to use api
* style: apply DRY
2020-11-17 17:29:50 -05:00
gasoved
3ccebf112e
feat: invites regardless of registration type, invite privilege, groups to join on acceptance ( #8786 )
...
* feat: allow invites in normal registration mode + invite privilege
* feat: select groups to join from an invite
* test: check if groups from invitations have been joined
* fix: remove unused variable
* feat: write API versions of socket calls
* docs: openapi specs for the new routes
* test: iron out mongo redis difference
* refactor: move inviteGroups endpoint into write API
* refactor: use GET /api/v3/users/:uid/invites/groups
Instead of GET /api/v3/users/:uid/inviteGroups
* fix: no need for /api/v3 prefix when using api module
* fix: tests
* refactor: change POST /api/v3/users/invite
To POST /api/v3/users/:uid/invites
* refactor: make helpers.invite awaitable
* fix: restrict invite API to self-use only
* fix: move invite groups controller to write api, +tests
* fix: tests
Co-authored-by: Julian Lam <julian@nodebb.org >
2020-11-16 14:47:23 -05:00
Barış Soner Uşaklı
f14e42d8bc
fix : #8883
2020-11-14 19:56:01 -05:00
Julian Lam
f300c933a5
refactor: move session revocation route to write api
2020-11-10 14:27:38 -05:00
Julian Lam
6b196a207f
fix: permanent redirect on user api redirect shorthand
2020-11-06 11:54:46 -05:00
Julian Lam
60e1e99b4f
feat: new shorthand route /api/v3/users/bySlug/:userslug
...
closes #8844
2020-11-06 11:37:21 -05:00
Julian Lam
891a1ea2af
fix : #8827 , do not require admin:users privilege to ban users
2020-11-05 10:22:07 -05:00
Julian Lam
266d7587b2
refactor: remove usage of middlewares
...
Specifically, middleware.isAdmin|exposePrivilegeSet|exposePrivileges
2020-10-29 07:56:28 -04:00
Julian Lam
aa8faf58a0
refactor: remove /users/{uid}/settings/{setting} route
...
@baris Also, I am now allowing the following properties to be saved in User.saveSettings:
- categoryTopicSort
- topicPostSort
- setCategorySort
- setTopicSort
2020-10-28 17:21:54 -04:00
Julian Lam
618e098305
fix: bug where token generation route would fail on null case
2020-10-27 20:37:23 -04:00
Julian Lam
c26f2b6599
feat(writeapi): user settings API
2020-10-22 14:07:50 -04:00
Julian Lam
2d252f2fa4
refactor: user bans to use api lib
2020-10-15 19:05:31 -04:00
Julian Lam
960e925e40
refactor: change password/user follow to use api lib
2020-10-15 17:09:39 -04:00
Julian Lam
430e7f5834
refactor: user deletion to use api lib
2020-10-15 16:49:06 -04:00
Julian Lam
31ae8a8323
refactor: socket profile update to use api lib
2020-10-15 16:21:54 -04:00
Julian Lam
23086daead
refactor: user create and profile update to use api lib
2020-10-15 15:50:30 -04:00
Julian Lam
cc6e995ee2
fix: api bug where user profile editing continued even if not allowed
2020-10-15 10:23:57 -04:00
Julian Lam
2ec838fc59
feat(writeapi): token generation/delete routes, ACP updates
2020-10-08 15:33:10 -04:00
Julian Lam
7757f965eb
fix: errors thrown if no password sent in to profile edit route
2020-10-08 15:33:10 -04:00
Julian Lam
a5af2dc819
feat: added PUT/DELETE /api/v1/users/:uid/ban routes
2020-10-08 15:33:10 -04:00
Julian Lam
b5bbcbaeaa
feat: added POST and DELETE /api/v1/users/:uid/follow routes
2020-10-08 15:33:10 -04:00
Julian Lam
7aed174ebc
feat: added PUT /api/v1/users/:uid/password route
2020-10-08 15:33:10 -04:00
Julian Lam
a1ddc210b2
feat: added DELETE /api/v1/users/:uid and DELETE /api/v1/users
2020-10-08 15:33:10 -04:00
Julian Lam
d15d9e4492
fix(refactor): patching helpers.tryRoute for API routes, some re-org
...
Thanks @barisusakli for the tip
2020-10-08 15:33:10 -04:00