Commit graph

58 commits

Author SHA1 Message Date
Sacha Greif
50fc3eb11a Merge branch 'namespace' of https://github.com/TelescopeJS/Telescope into namespace
# Conflicts:
#	lib/users.js
#	packages/telescope-base/lib/base.js
#	packages/telescope-base/package.js
#	packages/telescope-lib
2015-04-20 13:57:37 +09:00
Charlie DeTar
6a155301e9 Fix usage of `can.edit` for users
Fix the ``changeEmail`` method's invocation signature of ``can.edit``,
and fix the definition of ``can.edit`` to allow it to work with users as
the "item".

Note that this relies on "_id" to be unique across collections.  Mongo
won't generate the same ID in two collections, but it is possible to
manually add an object to another collection with a duplicate ID.
2015-03-26 15:00:32 -06:00
Charlie DeTar
7015663741 Add userId param to changeEmail method
Fixes #852.
2015-03-26 14:39:36 -06:00
Luca Mussi
73bb536c52 profile.name -> profile.username 2015-03-12 10:12:47 +01:00
Sacha Greif
4e3f4ce174 Refactor default view route controller code and use tagline in title on homepage 2015-02-11 19:15:29 +09:00
Andrey Mukamolow
7a225c3a4b Small improvements
Added missed semicolons and commented mindless & unused functions
2015-02-03 21:26:48 +03:00
Sacha Greif
b709334cd6 dummy users should not be admins 2015-01-06 14:22:39 +09:00
Sacha Greif
9bbf0347d3 log first run event and hide release notes until then 2014-12-31 19:05:00 +09:00
Sacha Greif
512cc7707d typo fix 2014-12-13 16:29:31 +09:00
Sacha Greif
1eb72079b4 adding userCreatedCallbacks callback hook and refactoring user creation 2014-12-13 14:02:45 +09:00
Ben Gott
c84279cdfe Fix email_hash bug (Issue #393) 2014-10-15 16:48:04 -05:00
Charlie DeTar
ed09d0ea7c Fully abstract isAdmin
We're using a fork with a different definition of "isAdmin" (using
``meteor-roles`` rather than the boolean user.isAdmin).  ``lib/user.js``
provides abstracted methods for reading admin state, which makes it very
easy to change our definition -- except that the abstractions weren't
used universally.

This commit finishes the job of using the abstractions, and adds a few
new parts to also allow abstracting setting and updating admin-ness:

 - setAdmin: sets admin status directly on a user object.
 - updateAdmin: executes a mongo update to set admin status.
 - adminMongoQuery: the query parameter for admin-ness, for composing
   user queries with other fields.
 - notAdminMongoQuery: the query parameter for not-admin-ness.
2014-10-03 16:21:06 -06:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Sacha Greif
f67ad0b7ae regenerate email hash on profile update 2014-09-12 11:54:04 +09:00
Sacha Greif
67de4f432a Fix gravatar code for good this time (hopefully) 2014-09-12 11:42:44 +09:00
Sacha Greif
8ae358181e Got rid of meteorhacks:npm packages; moved email features to their own package 2014-08-29 10:23:11 +09:00
Sacha Greif
735f0645db move votes to their own object on user object 2014-08-23 11:53:37 +09:00
Philip Nuzhnyy
932f56bc1f merge master 2014-08-12 16:02:05 +02:00
Sacha Greif
7f103be36d refactoring and style tweaks 2014-08-05 12:25:26 +09:00
Sacha Greif
3f8c868bdc almost done with newsletter banner 2014-08-05 11:24:54 +09:00
Sacha Greif
af4a9ee413 working on sync/async issues 2014-08-05 10:59:54 +09:00
Sacha Greif
be0ab69c7b Adding footer and hero modules; working on newsletter subscribe banner 2014-08-05 10:16:05 +09:00
Sacha Greif
2135c4b11f Adding cron job to schedule digests 2014-08-04 19:02:21 +09:00
Sacha Greif
78f440e8cd refactoring email templates 2014-08-03 11:50:10 +09:00
Philip Nuzhnyy
c25c6dd126 set invitation information for newly signed up users based on existing invites 2014-08-01 14:09:02 +02:00
Christian Bundy
86ec3ede93 Solve trivial JS errors
Using jshint and and fixmyjs I went through and removed 220 trivial
Javascript errors – mostly missing semicolons, and some properties that
weren’t written in dot notation. You can view the diff of jshint’s
output here:
https://gist.github.com/christianbundy/7b37c51bb6f7c8d739e7/revisions
2014-05-06 20:15:48 -07:00
Sacha Greif
ca43c338f6 fix #179 2013-11-18 13:20:40 +09:00
Sacha Greif
4cd03a6a11 refactored notifications; added notifications for new users 2013-11-18 11:30:58 +09:00
Sacha Greif
ad9bea13ed refactored invites and user dashboard a bit 2013-11-14 10:49:37 +09:00
Sacha Greif
0ea12ec96f do not try to add user to mailchimp list if they don't have an email 2013-11-14 10:04:11 +09:00
Sacha Greif
f2fbb98d8c added better user filtering/sorting 2013-11-08 09:47:23 +09:00
Sacha Greif
cf60616776 subscribe to all users to make autocomplete work 2013-11-05 12:44:13 +09:00
Sacha Greif
7966f0b985 generate user slug from username, make it non-modifiable 2013-10-24 14:24:03 +09:00
Sacha Greif
78bba0e915 invite system 2013-10-23 19:43:42 +09:00
Sacha Greif
9c4f030b90 fixing singleUser publication; simplifying user object update/remove permissions 2013-10-21 18:56:22 +08:00
Sacha Greif
c17d874596 adding option to sign up new users to a MailChimp list 2013-10-05 11:43:07 +09:00
Sacha Greif
9b2d06dc88 refactored animation code 2013-03-19 10:54:01 +09:00
Sacha Greif
6891f30864 tweaking readme and email test method 2013-01-19 23:14:59 +09:00
Sacha Greif
fa1f8db277 added generateEmailHash helper method 2013-01-19 22:09:47 +09:00
Sacha Greif
9a464035d9 working on email notifications; refactored onsite notifications too 2013-01-19 18:24:18 +09:00
Sacha Greif
98c2a1f739 working on scoring algorithm optimizations 2012-12-24 10:59:13 +01:00
Tom Coleman
f6fb8372b9 Added permissions for the profiler.. 2012-12-05 17:52:14 +11:00
Sacha Greif
4bf2e3bf46 reworking signin/signup and even tracking 2012-11-26 17:11:21 +09:00
Sacha Greif
cc61f38d7c tweaks 2012-11-21 12:30:45 +09:00
Sacha Greif
401f0bad1d now checking for duplicate links and limiting to 30 posts per 24 hours 2012-10-30 12:01:11 +09:00
Sacha Greif
8de6e38226 set first user as admin 2012-10-19 12:42:28 +09:00
Sacha Greif
939b823df0 simplify onCreateUser, publish email_hash 2012-10-18 17:43:03 +09:00
Sacha Greif
60524e4c05 fixed wrong arguments 2012-10-18 17:20:20 +09:00
Sacha Greif
7419ff2cb0 adding canView to permissions 2012-10-05 14:08:46 +09:00
Sacha Greif
e9119ef036 reworking invite system 2012-10-05 13:59:40 +09:00