Commit graph

49 commits

Author SHA1 Message Date
Lauri Ojansivu
fb79c8786a v0.41 2017-09-25 13:16:07 +03:00
Lauri Ojansivu
f7a1c4896b Fix lint errors. 2017-09-24 17:08:28 +03:00
none
57d6180a7a Allow admin to create user despite disabling registration throught rest api. 2017-09-23 15:20:11 +09:00
nztqa
6a10257fd7 Add change email address
Set allow email change in admin panel
2017-08-07 17:40:50 +09:00
mayjs
25b26657da Fixed eslint errors 2017-05-15 22:10:46 +02:00
mayjs
158f19b67c let -> const 2017-05-15 18:45:24 +02:00
mayjs
fa928956c2 Added an endpoint to get the user referenced by the given token 2017-05-15 18:44:54 +02:00
huneau romain
b5271e5346 add token authentication, only admin can use api 2017-05-11 12:15:02 +02:00
Lauri Ojansivu
0319bcf7bb REST API - Meteor 1.4 - first step issue 2017-04-27 20:49:24 +03:00
Stephen Moloney
88d3f38d53 dangling commas error 2017-04-06 10:14:54 +01:00
Julen Landa Alustiza
28a1dd677c First user is admin only if not running in sandstorm 2017-04-02 16:29:51 +02:00
Julen Landa Alustiza
1218e114be Add isAdmin to user Schema 2017-04-02 12:55:13 +02:00
Julen Landa Alustiza
dfeeec308a Fix email settings loading:
MAIL_URL was overriden with database info all the time.
Now if MAIL_URL exists is not overwritten and if neither MAIL_URL nor
exists valid admin panel data MAIL_URL is not set.
MAIL_FROM was ignored. Same behaviour, env variable has bigger priority
than database configuration.
On both cases, althrought environment variable is set, updating admin-panel
mail settings will load new info and ignore the environment variable.
Remove some code that is not needed anymore
2017-04-01 21:46:09 +02:00
Lauri Ojansivu
578619d409 Merge pull request #925 from rhelsing/comment-permissions
Comment permissions
2017-03-28 20:55:02 +03:00
Lauri Ojansivu
0c36f5f4c2 Merge pull request #943 from Zokormazo/smtp
Don't send emails if missing smtp host
2017-03-28 20:52:39 +03:00
Julen Landa Alustiza
5db786e2dd Don't send emails if missing smtp host 2017-03-28 12:44:36 +02:00
lkisme
f82941550a Remove invitation code if email sending failed, improve registration process with invitation 2017-03-28 00:48:18 +08:00
Ryan Helsing
de10be6a21 comment only working, naive implementation complete 2017-03-18 18:49:39 -04:00
Ryan Helsing
383daf6f64 cant see add list if comment only 2017-03-18 15:22:40 -04:00
Lauri Ojansivu
7c9a30d8fe Fix merge conflict. 2017-03-05 19:58:22 +02:00
Florent MONTHEL
ad6471d3bd [ENH] Invite user with lower case email 2017-03-04 20:42:25 -05:00
lkisme
39f2837838 wording change, email sending optimization, add texts to i18n 2017-02-26 21:11:15 +08:00
lkisme
1dfb6ef477 Admin panel:
Only invited user can register in strict mode,
Set mail server in admin panel,
Switch strict mode in admin panel,
Invite people to system in admin panel
2017-02-24 22:10:38 +08:00
Mario Orlicky
35778d2673 fixed few overseights 2016-11-25 21:53:18 +01:00
Mario Orlicky
606dbbbbf2 New option to set up minimum limit to show cards count for each list in board 2016-11-25 21:45:11 +01:00
Mario Orlicky
4359f66ece Fixed build 2016-11-19 19:19:24 +01:00
Mario Orlicky
8290dcb249 New change settings option and possibility to hide system messagaes 2016-11-19 19:02:33 +01:00
Drew Fisher
0f62fe0c6e Fix login on Sandstorm by not creating welcome boards
This one is a pretty strange chain of events:

* fetching /.sandstorm-login via accounts-sandstorm's rendezvous protocol
  causes a user to be created in the users collection
* models/users.js has hooks to create a board and lists when a user is created
* models/activities.js has a hook to create activity entries when a list is
  created
* this hook does not handle not having no boardId, which results in attempting
  to run the hook with boardId: 'false'.  'false' does not have a title
  attribute, which causes the whole method call to throw an exception.
* This makes the initial login fail.

While there may be other bugs, the simple fix is to not create the board and
lists when running under Sandstorm, where you only have one board anyway.
2016-11-03 23:42:00 -04:00
Maxime Quandalle
4f5cecf738 Merge #616 into devel 2016-07-18 15:40:41 +02:00
Alexander Sulfrian
855f56c61a profile.name is called profile.fullname (#615)
The name of the profile field was changed log ago. This fixes the
remaining wrong references.
2016-07-11 12:05:03 +02:00
Alexander Sulfrian
e521fe617e Welcome board: Allow localization 2016-06-03 03:56:41 +02:00
Alexander Sulfrian
ae2c1fb77f Fix initial board creation
We cannot rely on the automatic userId setting of the collection hooks.
If a user is created during invitation, the userId field will contain
the id of the inviting user.

This fix this, by mocking the CollectionHooks.getUserId function and
returning the userId of the new user for all new documents after
creating the user.
2016-06-03 03:56:40 +02:00
Alexander Sulfrian
b9883a8e24 Remove duplicated logic
The duplicated logic was nessessary because the before.insert hook was
not called before validation, when inserting was initiated on the server.
Using autoValues fixed this problem.
2016-06-03 03:56:38 +02:00
Alexander Sulfrian
18b1573b25 Meteor.users: Add SimpleSchema
Replace before.insert hook with SimpleSchema and autoValue.
2016-06-03 03:56:37 +02:00
Alexander Sulfrian
3a0a9fa009 Fix initials avatar generation (#577)
The ES5 reduce method also needs a initial value. This bug was
introduced in aa974aa54a.
2016-04-21 19:24:08 +02:00
floatinghotpot
39e1cc0237 Improve PR, adding more comments 2016-01-06 16:59:25 +08:00
Liming Xie
9bbdacc79a Add notification, allow watch boards / lists / cards 2016-01-05 23:26:02 +08:00
Maxime Quandalle
0cdcccf1f6 Send invite email in the server console in development mode
Meteor support that use case for us, we don't need to implement our
own validate strategy on top of that. This was also discussed as part
of the #454 review.
2016-01-01 13:31:54 +01:00
Maxime Quandalle
d9b74131ae Fix avatar support on Sanstorm
The bug comes for 9154b06 which this commit partially reverts. The
synchronization between the user document profile and the Sandstorm
HTTP headers is still not perfect. Having a clean model may requires
the `accounts-sandstorm` to expose a hook to modify the user document
just after the `services.sandstorm` credentials are updated.

Fixes #460
2015-12-30 19:34:18 +01:00
Maxime Quandalle
592aa6d576 Partially revert aae5030
As discussed in #370 and announced in the official Eslint-meteor
plugin repository (https://github.com/dferber90/eslint-plugin-meteor),
it is recommended to not use this plugin anymore has the author has it
is currently broken and the author has abandoned it.
2015-12-24 13:13:05 +01:00
floatinghotpot
672c21bfe0 bugfix: only care active members, also optimize some code 2015-12-08 16:03:31 +08:00
floatinghotpot
011f53ad08 add: invite user via email, invited user can accept or decline, allow member to quit 2015-12-07 11:15:57 +08:00
floatinghotpot
892d1a2d45 i18n-ize meteor email templates 2015-12-04 10:39:51 +08:00
Xavier Priour
a7427b9ae4 merge with /devel 2015-11-13 12:43:34 +01:00
Xavier Priour
3dc70b3ea4 Import members: UI flow ok 2015-11-13 12:35:41 +01:00
Dominik Ferber
3956a6ec20 Add eslint-plugin-meteor
Add rules for eslint-plugin-meteor.

Use local version of eslint and eslint-plugin-meteor, instead of
relying on global versions. Ensures consistent versions of eslint and
eslint-plugin-meteor for all developers.
2015-10-27 17:40:38 +01:00
Maxime Quandalle
aa974aa54a Prefer ES5 methods over underscore utilities
Since 07cc454 (ie the switch to Meteor 1.2) we includes the `es5-shim`
polyfill to support methods like `Array.prototype.forEach` in a
consistent way across all supported browsers (IE8+).

MDG recently released a blog post recommending the use of these native
methods instead of underscore [0]. We know follow this recommendation.

This commit also favor some ES6 features (argument defaults,
destructing assignment) in places where we didn’t use them.

[0]: http://info.meteor.com/blog/es2015-get-started
2015-10-22 18:13:12 +02:00
Maxime Quandalle
9154b06fc3 Upgrade kenton:accounts-sandstorm package to 0.1.6
We now delegates more user attributes sync (avatar and permissions) to
this package instead of doing it ourselves.
2015-10-21 04:26:16 +02:00
Maxime Quandalle
45b662a1dd Centralize all mutations at the model level
This commit uses a new package that I need to document. It tries to
solve the long-standing debate in the Meteor community about
allow/deny rules versus methods (RPC).

This approach gives us both the centralized security rules of
allow/deny and the white-list of allowed mutations similarly to Meteor
methods. The idea to have static mutation descriptions is also
inspired by Facebook's Relay/GraphQL.

This will allow the development of a REST API using the high-level
methods instead of the MongoDB queries to do the mapping between the
HTTP requests and our collections.
2015-09-08 20:19:42 +02:00
Renamed from collections/users.js (Browse further)