Commit Graph

594 Commits

Author SHA1 Message Date
Matteo Pagliazzi 5c33a404fb handle mongoose validation errors, fix bug in import and add more tests for errors 2015-11-21 15:00:31 +01:00
Matteo Pagliazzi afbfbdd01c fix mongoose promise, some user validation, tests urls 2015-11-21 14:27:24 +01:00
Matteo Pagliazzi 3608742e20 fix bugs on user controller 2015-11-21 12:26:48 +01:00
Matteo Pagliazzi 2f4e6e015a Merge branch 'api-v3-user' of github.com:HabitRPG/habitrpg into api-v3-user 2015-11-21 12:03:26 +01:00
Matteo Pagliazzi 7866f7393b clean up code, add deleteSocial method 2015-11-21 12:03:08 +01:00
Blade Barringer e4827f1b78 fix(user ctrl): Correct path to use model import 2015-11-20 19:08:25 -06:00
Matteo Pagliazzi c87200f582 comment out incomplete code 2015-11-19 22:04:18 +01:00
Matteo Pagliazzi e028af9f3f add social login / signup and misc fixes 2015-11-19 21:50:23 +01:00
Matteo Pagliazzi 972cbbdaa6 try moving all the logic to the model 2015-11-19 21:09:39 +01:00
Matteo Pagliazzi 55d743ebe5 remove q import 2015-11-19 16:29:22 +01:00
Matteo Pagliazzi 5874e89e2a simplify code 2015-11-19 16:22:16 +01:00
Matteo Pagliazzi dd8c22584d req.t --> res.t 2015-11-19 12:17:44 +01:00
Matteo Pagliazzi 6451264572 start porting register local user handler, several bug fixes 2015-11-19 12:13:54 +01:00
Matteo Pagliazzi 5c859ca52e add req.t in place of i18n.t passing req.language, begins implementing user signup 2015-11-18 22:04:36 +01:00
Matteo Pagliazzi bd980e166b fix action method 2015-11-18 18:16:14 +01:00
Matteo Pagliazzi de75849c7a fix apidoc comment 2015-11-18 18:06:37 +01:00
Matteo Pagliazzi d5d13477d7 wip user controllers: local login method 2015-11-18 18:02:35 +01:00
Matteo Pagliazzi 2dfca76a5e Merge pull request #6256 from HabitRPG/api-v3-apidoc
API v3 - apidoc wip
2015-11-18 17:12:14 +01:00
Matteo Pagliazzi 65a8d2e255 misc fixes and improvements, starts adding route tests 2015-11-18 12:36:13 +01:00
Matteo Pagliazzi 6fb4fdfd8a create apidoc task in grunt, update package.json version 2015-11-18 11:50:55 +01:00
Blade Barringer 08c4ec5557 Merge branch 'develop' into api-v3 2015-11-17 23:15:15 -06:00
Blade Barringer 05eb0ec782 Add missing comma. 2015-11-17 17:26:18 -06:00
Matteo Pagliazzi 18503e31c3 fix linting 2015-11-17 19:31:51 +01:00
Matteo Pagliazzi 2a51117d21 comment errors according to apidoc, add new tests and fix existing ones 2015-11-17 19:22:47 +01:00
Matteo Pagliazzi 846800ccc9 fix linting 2015-11-17 17:49:59 +01:00
Matteo Pagliazzi 9905deec06 move static handler to separate middleware 2015-11-17 17:02:53 +01:00
Matteo Pagliazzi aa1b046cf2 add example apidoc comments, add notFound middleware 2015-11-17 16:48:50 +01:00
Blade Barringer 8b7f50bfcf Adjust memory leak message to be meaningful.
Got this message in the heroku logs:
2015-11-17T04:28:18.549451+00:00 app[web.1]:  '[Memory Leak] Memory=' + parseFloat(memory).toFixed(3) + ' Time=' + moment()

Converted the line into a variable and threw that instead.
2015-11-16 22:34:06 -06:00
Blade Barringer e6a5d08150 Merge branch 'develop' into api-v3 2015-11-16 17:34:30 -06:00
Sabe Jones e73c7be47a fix(achievement): Make Costume Contest repeatable 2015-11-16 16:07:16 -05:00
Matteo Pagliazzi 30eed12903 Merge pull request #6245 from HabitRPG/api-v3-routes
Api v3 Routes
2015-11-16 17:07:46 +01:00
Blade Barringer cc0eefd97d Remove coffeescript dependency 2015-11-15 15:45:30 -06:00
Matteo Pagliazzi 3fe6f87a96 fix linting 2015-11-15 22:44:17 +01:00
Matteo Pagliazzi 448ed70ab9 add example controller and lib to setup routes 2015-11-15 22:40:00 +01:00
Blade Barringer 49fd6b9f5c Merge branch 'api-v3' of github.com:HabitRPG/habitrpg into api-v3 2015-11-15 14:59:57 -06:00
Blade Barringer 00055ad055 Merge branch 'develop' into api-v3 2015-11-15 14:57:41 -06:00
Matteo Pagliazzi 83eb2308fb Merge pull request #6232 from HabitRPG/api-v3-utils
[API v3] Port Utils
2015-11-15 20:01:48 +01:00
Matteo Pagliazzi 1ccb9a5aaa move ported middlewares to /api-v2 2015-11-15 18:15:06 +01:00
Matteo Pagliazzi 5dc2fb0b6f port domainMiddleware 2015-11-15 18:12:55 +01:00
Blade Barringer a127bb8711 Switch to babel-core form babel.
Babel includes the CLI, which we don't need.
2015-11-15 08:59:57 -06:00
Blade Barringer ddeb0e7b23 Add babel register in the server file 2015-11-15 08:16:11 -06:00
Matteo Pagliazzi 19ce7c9b53 add tests for emails (wip) and encryption, misc fixes 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi 170a25c712 remove v2 utils where possible 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi b315d10c79 migrate utils to v3, uprade nodemailer 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi 6343bc9f59 port buildManifest lib 2015-11-14 15:50:57 +01:00
Matteo Pagliazzi 9c8d4c383f fix eslint, remove unused constant 2015-11-14 15:37:02 +01:00
Matteo Pagliazzi ae656b044c firebase can be enabled when not in production 2015-11-14 14:52:10 +01:00
Matteo Pagliazzi cf4eb7c89b Merge pull request #6237 from HabitRPG/api-v3-firebase
port firebase lib to api v3
2015-11-14 13:14:50 +01:00
Matteo Pagliazzi d89b1cb60d port firebase lib to api v3 2015-11-14 02:50:58 +01:00
Blade Barringer 2e21d227e0 Simplify get language from user function. 2015-11-13 19:36:49 -06:00