Commit Graph

93 Commits

Author SHA1 Message Date
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
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ı
2279e37261 refactor: deprecate socket.emit('users.search') use api route 2020-10-16 23:30:22 -04:00
Barış Soner Uşaklı
872bacf1c4 Admin/users (#8762)
* feat: wip admin/users

* feat: more work

* feat: more fixes

* feat: #8662, verified/unverified user groups

* feat: add filter

* feat: change user search to use filters array

* refactor: remove unused search call

* fix: tests

* fix: cant join system groups

* fix: upgrade script
2020-10-13 22:42:50 -04:00
Barış Soner Uşaklı
ac6b571ed5 fix: dont allow searching by email/ip if not privileged 2020-07-04 16:43:44 -04:00
Barış Soner Uşaklı
071506eb7d fix: invite properly 2020-03-20 22:18:14 -04:00
Barış Soner Uşaklı
8f4b99a41c fix: admins not seeing invite button 2020-03-20 22:14:13 -04:00
Baris Usakli
0a96c92300 fix: #8034 2019-11-15 15:27:02 -05:00
Barış Soner Uşaklı
5b8550f060 fix: time cutoff and lang string 2019-09-20 23:03:31 -04:00
Baris Usakli
f9a804e014 refactor: async/await users 2019-08-23 15:46:10 -04:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
a7267df404 closes #6464 2018-05-28 11:29:41 -04:00
Barış Soner Uşaklı
7a405da60f group member search change 2017-07-28 00:55:02 -04:00
barisusakli
2188036148 controllers/users refactor 2017-03-02 00:14:30 +03:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
a038c66549 ESlint quotes 2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
84f88a6f15 refactor user search
use pagination on results
removed infinite scroll
changed the term and section to use the query param as well
pagination urls respect search
2016-08-24 14:47:01 +03:00
barisusakli
a002eecd03 dont crash if set is not defined, closes https://github.com/NodeBB/nodebb-plugin-leaderboard/issues/4 2016-08-16 12:16:38 +03:00
barisusakli
789a3736af closes #4820 2016-07-04 17:49:02 +03:00
barisusakli
dcb73f9647 use userCount 2016-05-24 17:52:28 +03:00
Julian Lam
afb0312f51 closes #4672 2016-05-24 10:37:45 -04:00
barisusakli
25f3a31ff1 closes #4587 2016-04-30 10:47:28 +03:00
barisusakli
9b1dab8ef9 up default to 50 2016-03-22 18:33:35 +02:00
Barış Soner Uşaklı
53249de799 fix performance issue with acp 2016-03-09 22:15:03 +02:00
barisusakli
0b2f01b8bc info page 2016-03-09 13:19:37 +02:00
barisusakli
e9c488d489 closes #4166 2016-02-24 13:09:53 +02:00
barisusakli
0bea912077 cleaned up users controller 2016-02-03 15:27:06 +02:00
barisusakli
1b9e18c6fc allow global mods to see banned users 2016-02-03 15:17:42 +02:00
barisusakli
45926520cf fix typo 2016-01-18 17:35:15 +02:00
barisusakli
ee9d0ac2da cleanup search, removed socketuser.loadSearchPage, use regular route 2016-01-16 10:20:00 +02:00
barisusakli
ae9606f5ee closes #3738 2016-01-14 11:25:07 +02:00
Peter Jaszkowiak
259eb585d6 Added template data for admin invite only 2015-11-28 15:38:17 -07:00
Peter Jaszkowiak
67905667a9 Added admin-only invites 2015-11-28 15:33:17 -07:00
Peter Jaszkowiak
a3cfcd9a48 Maximum invites, invites stored
Added the ability for admins to restrict the maximum amount of invites
a user can make. Invites are stored and displayed in the registration
queue admin page.
2015-11-27 16:55:31 -07:00
barisusakli
1ecf27417a removed commented out stuff removed topics.enter 2015-11-05 11:53:17 -05:00
Julian Lam
b52475c270 Merge remote-tracking branch 'origin/master' into user-icons
Conflicts:
	public/src/client/account/edit.js
	src/middleware/middleware.js
	src/socket.io/meta.js
	src/socket.io/user/picture.js
	src/user.js
	src/views/admin/manage/group.tpl
2015-10-25 07:33:59 -04:00
barisusakli
36bfe30425 closes #3736 2015-10-09 14:23:02 -04:00
Julian Lam
00079ce158 default user icon for anons 2015-09-30 13:19:32 -04:00
barisusakli
70b8d546b3 fix breadcrumb 2015-09-16 14:58:49 -04:00
barisusakli
ade9a44b11 closes #3590 2015-09-16 14:45:45 -04:00
barisusakli
6c40d2e424 #3475 2015-09-11 23:14:03 -04:00
psychobunny
25a419e458 Merge branch 'master' into v0.8.x 2015-08-27 13:59:12 -04:00
barisusakli
0bf8b279de fix typo 2015-08-26 15:58:51 -04:00
barisusakli
5c19bf31c9 removed breaking change 2015-08-26 15:58:27 -04:00
barisusakli
eaefd9d24c remove meta/title.js and meta.title.build #3481 2015-08-26 15:55:00 -04:00