Commit Graph

133 Commits

Author SHA1 Message Date
OldHawk
a175308b52 feat(users): add fields 'isVip, isOper, isAdmin' to model user 2017-09-14 15:18:14 +08:00
OldHawk
674209ebf9 feat(users): populate invited_by user info when login 2017-09-13 18:29:15 +08:00
OldHawk
ac5e453f05 fix(users): login error 2017-09-13 18:15:39 +08:00
OldHawk
201d54d18a feat(users): show invited_by user info in account status center and admin manage page 2017-09-13 15:05:28 +08:00
OldHawk
09f1fbbb3b feat(users): add invited_by filed to model user 2017-09-13 14:54:58 +08:00
OldHawk
7fcc8479e8 feat(debug): add app configure item of debug mode to show debug console log message 2017-09-13 10:51:52 +08:00
OldHawk
2b2bdc1dd4 feat(admin): add fields uptotal of users to count the uploaded torrent file numbers and get uptotal method 2017-09-12 10:53:42 +08:00
OldHawk
bcba926df2 feat(admin): admin can list user`s seeding/leeching/warning torrents 2017-09-11 18:15:46 +08:00
OldHawk
91bec12382 feat(users): show user h&r warning numbers in header menu and user info page 2017-09-11 15:12:21 +08:00
OldHawk
8dec0dff66 feat(users): add fields 'hnr_warning' to count H&R warning number 2017-09-07 16:44:13 +08:00
OldHawk
f052ea853e Merge commit 'b43c80e2c097b11114f4e4f01b9718321721a89b'
* commit 'b43c80e2c097b11114f4e4f01b9718321721a89b':
  feat(build): Update dependencies (#1847)
  fix(travis): Fix Travis failing on webdriver issues (#1845)
  fix(eslint): Inconsistent spacing before function parentheses (#1844)
  fix(mongodb): update ssl connection settings (#1809)
  Remove deprecated crypto package (#1843)
  feat(config): Mongo Seed 2.0 (#1808)
  fix(users): don't fail on missing old image on image upload (#1839)
  feat(build): Turn on mangling for uglify (#1841)
  fix(gulp): fix broken test:server:watch task (#1842)
  feat(core): Enhancement page title directive (#1686)
  feat(user): Add email support to forgot password (#1834)
  fix(mocha): update mochajs version to reduce vulnerabilities (#1830)
  refactor(menus): Refactor to the Menus client service to use functional loops/filters (#1575)
  feat(config): Mongoose 4.11 upgrade (#1818)

# Conflicts:
#	config/env/development.js
#	config/lib/app.js
#	modules/articles/server/models/article.server.model.js
#	modules/chat/client/config/chat.client.routes.js
#	modules/core/client/directives/page-title.client.directive.js
#	modules/core/client/services/menu.client.service.js
#	modules/users/client/config/users-admin.client.routes.js
#	modules/users/client/views/password/forgot-password.client.view.html
#	modules/users/server/models/user.server.model.js
#	package.json
2017-08-22 13:35:29 +08:00
Mikael Korpela
f44c9bce71 fix(eslint): Inconsistent spacing before function parentheses (#1844)
Defines `space-before-function-paren` eslint rule and changes files accordingly.
2017-08-14 23:50:33 +03:00
Michael Leanos
eb9cdd784c feat(config): Mongo Seed 2.0 (#1808)
feat(config): Mongo Seed 2.0

Adds a more configurable and easily extended MongoDB Seed feature.

Adds additional options at the collection, and collection item level to
allow more control over how each environment config handles the seeding
feature.

Enforces seed order based on the order of the  environment's seeding configuration object.

Removes the previous SeedDB config file.

Adds chalk to messages logged to the console for readability.

Refactors the Mongo Seed configuration tests.

Adds Gulp tasks to perform Mongo Seed operations for default, prod, and
test environment configurations. Also, adds accommodating npm scripts.
2017-08-13 16:29:47 -07:00
Mikael Korpela
be88a2ca1f fix(users): don't fail on missing old image on image upload (#1839)
Fixes scenarios where previously when old image file would be missing, uploading new image file over it would fail because unlinking previous file fails.
2017-08-13 21:52:38 +03:00
Mikael Korpela
f65d4b90ca feat(user): Add email support to forgot password (#1834)
Adds support for recovering users account using email and username.

Previously only username worked.
2017-08-07 16:38:48 +03:00
Michael Leanos
dc880eb5a7 feat(config): Mongoose 4.11 upgrade (#1818)
Upgrades Mongoose to 4.11.1

Updates Mongoose connection implementation to accommodate deprecated
features & connection options.

Also, updates the Gulp Mocha tasks to reflect changes to the Mongoose
implementation.

Fixes tests to get the database from the existing Mongoose singleton.

Derives from changes in https://github.com/meanjs/mean/pull/1816

Closes https://github.com/meanjs/mean/issues/1814
2017-07-27 13:19:22 -07:00
OldHawk
0fbed06b1a Merge commit '11777465cf77e2a0bbd0d576a1dadd76a8c2f55d'
* commit '11777465cf77e2a0bbd0d576a1dadd76a8c2f55d':
  Update templateCache root path
  feat(packages): updating packages (#1819)
  feat(Karma): Add mocha style progress to Karma tests
  feat(Travis): Don't allow Node.js 8 testing fail (#1815)
  feat(dependencies): replace PhantomJS in favor of chrome (#1776)
  fix(security): updated compression lib in package.json to reduce vulnerabilities (#1812)
  fix(build): ESLint error in Express config (#1807)
  fix(security): updating vulnerable packages (#1802)
  fix(build): E2E coverage broken on Travis CI (#1805)
  fix(users): Domain config setting (#1803)

# Conflicts:
#	package.json
2017-07-21 18:09:46 +08:00
OldHawk
9a43f8d052 feat(users): add access of user to view UserInfo 2017-07-17 20:13:56 +08:00
OldHawk
355307d21b fix(forums): update user topic & reply count when +/- 2017-07-16 14:44:22 +08:00
OldHawk
909b35ee60 feat(users): forbid user login when banned from server 2017-07-04 17:52:08 +08:00
OldHawk
9ea721ec29 feat(users): forbid user login when banned from server 2017-07-04 17:49:11 +08:00
OldHawk
a256d60064 feat(users): forbid user login when banned from server 2017-07-04 17:47:25 +08:00
OldHawk
65bb420363 fix(user): count ratio error when mongo update event 2017-06-29 18:15:00 +08:00
Michael Leanos
0cbdbdafb7 fix(users): Domain config setting (#1803)
Fixes an incorrect reference to the application's Domain configuration
setting.
2017-06-28 15:12:15 -07:00
OldHawk
d809b6262f feat(traces): load traces data 2017-06-24 13:53:32 +08:00
OldHawk
025d40e7f5 feat(traces): trace log many admin and user action 2017-06-24 12:36:28 +08:00
OldHawk
dbba4c0d64 feat(users): add filter to show ratio formated info 2017-06-21 09:58:27 +08:00
OldHawk
418f7fa5cc fix(core): upgrade conflict 2017-06-19 13:06:59 +08:00
OldHawk
4596c91d8c Merge commit '8f50eecc7c1ec7dda3363093b3b3e7f17ca9a692'
# Conflicts:
#	modules/users/server/controllers/users/users.authentication.server.controller.js
#	package.json
2017-06-19 12:43:44 +08:00
OldHawk
ba46261f6a fix(users): toJSON roles null error 2017-06-18 18:01:50 +08:00
OldHawk
a50da22141 feat(invitation): show user info by invite mail on detail page 2017-06-15 16:57:14 +08:00
OldHawk
30bd5169d7 feat(invitation): user can sign up by invitation mail now!!!!! 2017-06-15 16:18:07 +08:00
Michael Leanos
e4a3d38b23 fix(users): Duplicate Provider Accounts (#1767)
Fixes an issue where a provider account could be added to the logged in
user's additionalProviderData, when another user has already connected
that same account.

Refactors the saveOAuthUserProfile method to consider the results of the
provider search query, whether or not the current user is logged in.
2017-06-11 00:21:26 -07:00
OldHawk
b93e160260 feat(users): admin can change user uploaded and downloaded(+/-) 2017-06-07 16:34:22 +08:00
OldHawk
8c848433b7 feat(users): admin can change user score(+/-) 2017-06-07 15:54:16 +08:00
OldHawk
68392d7db5 feat(users): admin can change user account status banned/unbanned 2017-06-06 17:29:23 +08:00
OldHawk
9a9ce1de45 feat(users): admin can change user`s role now 2017-06-06 16:33:59 +08:00
OldHawk
2b75fb9e72 fix(users): user passowrd & salt value lose 2017-05-27 17:15:50 +08:00
OldHawk
76a239e3fa fix(status): load my seeding list and my downloading list data 2017-05-26 19:11:12 +08:00
OldHawk
41e444f928 fix(translate): change TVSeries to TVSerial 2017-05-26 11:53:49 +08:00
OldHawk
7679e89a51 feat(users): log user signed_ip,leeched_ip, client_agent, last_signed 2017-05-26 10:49:17 +08:00
OldHawk
180c24f498 feat(user): set first signup user role to 'admin' 2017-05-22 14:09:32 +08:00
OldHawk
84b3d1aea1 feat(user): set first signup user role to 'admin' 2017-05-20 23:24:02 +08:00
OldHawk
ae63e42138 open admin menu access to oper 2017-05-12 19:14:19 +08:00
OldHawk
448f868099 oper/admin can ban/kick user out to chat room now~~ 2017-05-12 16:38:02 +08:00
OldHawk
52a31c164d user can reset their passkey now 2017-05-09 13:40:16 +08:00
OldHawk
1eda960103 save passkey when user used social accounts 2017-05-09 12:22:16 +08:00
OldHawk
46fb8015a7 overwrite user model toJSON, make is_vip vitrual field 2017-05-03 18:20:31 +08:00
OldHawk
10b28b379e fixed up/down bytes and peer status 2017-04-19 19:20:46 +08:00
OldHawk
a9c516f3f4 add fields about vip/score of user table 2017-04-18 15:32:25 +08:00