51 Commits

Author SHA1 Message Date
OldHawk
072c4006eb feat(torrents): return torrent filename if exists when upload 2018-05-18 10:34:33 +08:00
OldHawk
ab3d7ac2bb feat(torrents): add access limit to maker group settings of torrent uploader 2018-04-24 12:01:53 +08:00
OldHawk
3ee3392a96 feat(core): limit fixed ip list to access admin center 2018-04-23 14:28:16 +08:00
OldHawk
02c6464af6 feat(core): set req.cf_ip when render index 2018-03-22 14:36:57 +08:00
OldHawk
38e8eeeb9e feat(core): add Cloudflare support 2018-03-22 12:44:54 +08:00
OldHawk
6b4212214c feat(templates): add more variable into server templates 2018-03-20 13:19:35 +08:00
OldHawk
89962c594d fix(core): remove unused code and add a comm-variable 2018-03-16 17:41:51 +08:00
OldHawk
6c07a86693 feat(forums): reinit all variable when finished post topic or reply 2018-01-21 16:02:02 +08:00
OldHawk
915992909a fix(core): fixed announce url issue 2018-01-21 15:23:40 +08:00
OldHawk
959a658aae feat(core): add configure item to set setDefaultValueOnIndex
set app.domain and announce.url on renderer index
if false, app.domain and announce.url used these config settings value
if true, app.domain and announce.url used req.app.get('domain') || req.headers.host
if web server used proxyPass setting, this should set to false
2018-01-07 10:28:21 +08:00
OldHawk
a006695f14 feat(config): set config default value on render index 2017-12-29 14:30:28 +08:00
OldHawk
11635470bc feat(config): set config default value on render index 2017-12-29 13:56:08 +08:00
OldHawk
dae2a82474 fix(config): fixed eslint warning 2017-12-16 16:30:14 +08:00
OldHawk
8cd802fb67 fix(config): ignore more not used configure items from browser 2017-12-16 16:28:44 +08:00
OldHawk
4af4b47d65 fix(forums): fixed normal user and vip/oper only forum access issues
normal user cannot view the vip/oper forum topics in 'global topics'
normal user can not view forum by url link enter, system well nav to forums home

#40 #20
2017-12-04 16:39:37 +08:00
OldHawk
2caa625f0e fix(backup): ignore some important configure items in browser source code
//ignore backup settings
  cfg.backup = undefined;
  //ignore ircAnnounce settings
  cfg.ircAnnounce = undefined;
  //ignore password settings
  cfg.password = undefined;
  //ignore trace settings
  cfg.trace = undefined;
  //ignore tmdbConfig.key settings
  cfg.tmdbConfig.key = undefined;

  #20
2017-12-04 15:18:49 +08:00
OldHawk
39d2431424 fix(core): server error info render error 2017-05-27 15:51:14 +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
c9d6dbe5e7 feat(TVseries): load TVSeries data
upload tvseries, create tvseries torrent item, load tvseries data to home view, admin manage tvseries data etc.
2017-05-23 18:55:59 +08:00
OldHawk
ab48ea97a6 fix(core): update movie info save process 2017-05-22 18:16:35 +08:00
OldHawk
448f868099 oper/admin can ban/kick user out to chat room now~~ 2017-05-12 16:38:02 +08:00
OldHawk
46fb8015a7 overwrite user model toJSON, make is_vip vitrual field 2017-05-03 18:20:31 +08:00
OldHawk
712532131b return user isOper/isAdmin to client 2017-04-27 17:11:06 +08:00
OldHawk
f13943ecfc return user._id in browser 2017-04-23 03:13:05 +08:00
OldHawk
4879e5ca18 fixed up/down bytes with VIP Ur/Dr 2017-04-18 18:13:06 +08:00
OldHawk
958d755889 write up/down bytes with VIP Ur/Dr 2017-04-18 16:12:50 +08:00
OldHawk
9d74664f26 make passkey when user signup 2017-04-16 17:46:15 +08:00
OldHawk
cdcacc6b85 add download btn on every list item
change meanTorrent config
2017-04-07 15:34:51 +08:00
OldHawk
13e4a346d0 add tmdb image base url config and service 2017-04-02 12:37:23 +08:00
OldHawk
1b1ec89c04 check uploads torrent files`s announce url 2017-04-02 00:15:33 +08:00
OldHawk
a661e09b4d modify uploads function 2017-04-01 10:57:04 +08:00
OldHawk
2989274c37 add an AnnounceConfig client service, it can read announce config data of server side 2017-03-27 13:37:17 +08:00
Laurence Tennant
2b6cf53d30 fix(users): Better MIME-type checking, remove image cropping library (#1589)
* Cropping remove, nicer UI

* Fix MIME-type checking, add image upload tests

* Change image config settings to uploads.profile.image to build a more
rational structure for configuring other types of uploads
2016-11-15 15:59:47 -08:00
walter
0588eaba48 Moved owasp config into default and reverted other config files.
Modified config to be "shared". This will allow future configurations to be easily passed to the client.
2016-09-12 11:53:22 -07:00
walter
d73d6baa7c Changed variable name to owaspConfig 2016-09-08 11:28:30 -07:00
walter
4ddb059346 switched to handlebar template for passing the server's owasp config down to the client.
reverted some of the other changes (regarding the http request).
2016-09-08 11:17:41 -07:00
Liran Tal
f6e579765f feat(express): introducing handlebars nodejs template system (#1461)
This commit introduces handlebars template system and completely replacing Swig and the Consolidate project to handle multiple template systems.
Fixes #1286
2016-08-29 08:32:21 +03:00
aanev
234f0c6850 fix(user): fix changeProfilePicture to overwrite existing files
* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

Fixes #1415

* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

* log file errors to console

Fixes #1415

* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

* log file errors to console

* update error handler module to handle file upload errors

Fixes #1415

* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

* log file errors to console

* update error handler module to handle file upload errors

Fixes #1415
2016-08-26 10:10:02 +03:00
Qiyu Li
6265aaa7da fix(core): Support WiredTiger engine errmsg format in MongoDB 3.2
The new WiredTiger engine is introduced in MongoDB 3.2.
It changes the output errmsg format for violation of unique index.
This commit adds support for the new format.

Fixes #1245
2016-03-04 09:56:15 -05:00
Francis Daigle
ba85dccb00 fix(core): Add "additionalProvidersData" to "safeUserObject"
Needed for management of social accounts.
2016-02-08 14:49:33 -07:00
mleanos
f88f28e035 fix(users): Profile image path is invalid after escaping
Removes the validator.escape on the profileImageUrl field in core server
controller.

The escaping was causing the profileImageUrl field to be an invalid path
for the image. We don't need to worry about xss vulnerabilities on this
field because no user input is provided; the name & path are generated
by the application logic.

Fixes #1127
2016-01-15 12:39:17 -08:00
Liran Tal
2b0ae863a0 fix(security): fixing possible xss issue in parsed objects
Fixes #1106
2015-12-30 16:41:05 +02:00
Ryan Hutchison
ef3a3f9548 formatting reboot (space-2 and consistency)
JSCS fixes

update editorconfig
2015-07-31 10:04:02 -04:00
Liran Tal
00a4c0603a Merge pull request #566 from simison/error-404-pages
#501 Handle 404 errors at Express backend and at Angular frontend
2015-07-20 22:25:33 +03:00
Igor Freire
0efc82db0f Fix message catching the field for which a duplicate key error ocurred 2015-07-20 14:39:44 -03:00
Igor Freire
5d4d7cecfe Make emails unique
Emails are made unique. When user attempts to sign in through a provider in which his email is one that is already registered, user is redirected to the signin page with an error passed as a query string parameter.
2015-07-17 14:52:27 -03:00
Mikael Korpela
7070796c53 Prettier res.status().format()
(due tabs — my editor has tab-spacing set to 2 so I don’t notice when
stuff like this looks crappy)
2015-05-18 19:25:02 +03:00
Mikael Korpela
fd170261ec #501 Use req.format() to content-negotiate correct response 2015-05-18 19:22:56 +03:00
Mikael Korpela
ba1a4475e9 #501 Handle 404 errors at Express backend at at Angular frontend
- `/{api|modules|lib}/*` returns error page when path doesn’t exist
(from Express).
- `/*` always returns index (from Express), but if `$state` doesn’t
exist, Angular redirects to `/not-found` (no 404 status in that case
though!)
- If `Accept: application/json` header is present without `Accept:
text/html`, return error as json. Hence looking at non existing /api/*
paths with browser would show html error, but querying them with script
would return json.
- Slightly prettier 404 error

Test:
```bash
curl http://localhost:3000/api/notfound -4 -H "Accept: application/json"
```
=> json error.

```bash
curl http://localhost:3000/api/notfound -4 -H "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0
.8"
```
=> html error (imitates Chrome’s Accept header).

Starting point was @dotch’s PL: https://github.com/meanjs/mean/pull/503

And `req.accepts()` idea came from http://stackoverflow.com/a/9802006
2015-05-18 17:38:30 +03:00
Christian Berendt
e027f4025b Add missing newline at the end of text files
On Unix it is common to have a newline at the end of text files.
2015-02-16 21:39:55 +01:00