Commit Graph

277 Commits

Author SHA1 Message Date
Matteo Pagliazzi 3002db3d75 add ability to update tasks, can pass additional fields to Model.sanitize at runtime 2015-11-29 19:05:24 +01:00
Matteo Pagliazzi 5291753841 prevent the deletion of challenge tasks 2015-11-29 18:29:35 +01:00
Matteo Pagliazzi 6849fd49be add ability to remove a task 2015-11-29 17:47:10 +01:00
Matteo Pagliazzi 454aa3731c add tasks to user.tasksOrder or creation 2015-11-28 18:18:28 +01:00
Matteo Pagliazzi c2dac2c494 fix import paths 2015-11-28 18:05:07 +01:00
Matteo Pagliazzi 6c904330e7 misc fixes, add createTask route and ability to get tasks by type to getTasks route 2015-11-28 17:47:32 +01:00
Matteo Pagliazzi 90d7f1f6a8 improve tasks models, fix a part of user pre save, rename auth controller 2015-11-28 13:46:53 +01:00
Matteo Pagliazzi 5fa514b6fa Merge branch 'develop' into api-v3 2015-11-27 17:05:29 +01:00
Alys 431eaec71a add a missing full stop to a message and to the associated test 2015-11-24 14:11:01 +10:00
Matteo Pagliazzi 7086fbfbd6 add res.respond middleware... and use it in user controller 2015-11-23 13:07:21 +01:00
Matteo Pagliazzi 349122c9a1 add res.respond, fix linting 2015-11-23 13:01:47 +01:00
Matteo Pagliazzi a26f713e18 misc fixes, add ability to attach local auth to social user 2015-11-23 12:47:15 +01:00
Matteo Pagliazzi 3459b51cef use throw instead of returning next inside of promises 2015-11-23 10:20:07 +01:00
Blade Barringer 867efd7078 fix(controller): Adjust next calls to throw errors instead inside promise 2015-11-21 17:01:56 -06:00
Blade Barringer d1839b816e chore(lint): Clean up user model and controller 2015-11-21 16:17:42 -06:00
Blade Barringer 074b3f5079 fix(controller): Validate params for register route in user controller 2015-11-21 14:57:59 -06:00
Blade Barringer 7ce554c578 fix(controller): Correct path to EmailUnsubscription model 2015-11-21 14:41:07 -06:00
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 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 d5d13477d7 wip user controllers: local login method 2015-11-18 18:02:35 +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
Matteo Pagliazzi aa1b046cf2 add example apidoc comments, add notFound middleware 2015-11-17 16:48:50 +01: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
Matteo Pagliazzi b315d10c79 migrate utils to v3, uprade nodemailer 2015-11-14 17:43:56 +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 be672e570c Merge branch 'api-v3' into api-v3-i18n 2015-11-13 07:44:48 -06:00
Blade Barringer 6e8e1648d9 Merge branch 'develop' into api-v3 2015-11-13 07:38:24 -06:00
Blade Barringer 27d3d9d296 Merge pull request #6229 from HabitRPG/emails
Adjust the way email invitations resolve.
2015-11-13 07:18:41 -06:00
Blade Barringer 565aaff976 Merge pull request #6219 from HabitRPG/js_ify_common
Js ify common
2015-11-13 06:49:54 -06:00
Blade Barringer e4679d6a63 Adjust the way email invitations resolve. 2015-11-12 18:58:01 -06:00
Blade Barringer 8e147d7b12 Allow users who register via facebook to see site tutorial. 2015-11-12 18:26:42 -06:00
Blade Barringer abe778836d Fixes #6225 2015-11-12 12:52:35 -06:00
Matteo Pagliazzi de21b72027 move old i18n version to api-v2 folder and use new i18n where possible 2015-11-12 16:43:02 +01:00
Blade Barringer 1e106b3c53 Move old webhooks to v2 lib 2015-11-12 09:08:36 -06:00
Blade Barringer 858bf99930 Move old logging lib v2 directory 2015-11-12 08:18:23 -06:00