Commit Graph

15 Commits

Author SHA1 Message Date
Florent Vilmart
1023baf20d DBController refactoring (#1228)
* Moves transform to MongoTransform

- Adds ACL query injection in MongoTransform

* Removes adaptiveCollection from DatabaseController

- All collections manipulations are now handled by a DBController
- Adds optional flags to configure an unsafe databaseController for direct
  access
- Adds ability to configure RestWrite with multiple writes
- Moves some transfirmations to MongoTransform as they output specific code

* Renames Unsafe to WithoutValidation
2016-04-14 19:24:56 -04:00
Krzysztof Zielonka
6dc7aa87c6 Fixed bug with 'undefined' token in email verification link 2016-03-29 19:02:19 +02:00
Drew Gross
2f00a02936 Document email adapter 2016-03-24 14:41:13 -07:00
Carmen
120c6feb61 Unset _perishable_token after reset password, instead of setting it to null. #951 2016-03-24 10:22:14 +08:00
Carmen
b3c5e836d5 Clear reset password token after reset password. _perishable_token is not a parse field, cannot clear it through rest. Update it separately. #951 2016-03-24 10:22:14 +08:00
Carmen
53e152e975 Instead of executing write directly, reuse rest.update to fix request object in user before save is empty when reset password. #951 2016-03-24 10:22:14 +08:00
Nikita Lutsenko
c4fa3f0ee0 Propagate installationId in all Cloud Code triggers. 2016-03-02 21:02:50 -08:00
Nikita Lutsenko
6d7813be4a Move UserController to use adaptiveCollection for findOneAndUpdate. 2016-03-02 00:29:20 -08:00
Nikita Lutsenko
4bd163b790 Remove direct mongo collection access from UserController.checkResetTokenValidity. 2016-03-02 00:04:44 -08:00
Florent Vilmart
6aa38ea8ca Improves validation of email parameters in Configuration 2016-02-29 19:26:50 -05:00
Florent Vilmart
2183b0be82 Allows very simple mail adapters
- Fix nasty bug when updating users email and sending verification
2016-02-29 18:58:35 -05:00
Florent Vilmart
3ecaa0aa4b Sends verification email upon set and update email
- nits
2016-02-29 18:58:34 -05:00
Florent Vilmart
91d9724182 Adds reset password logic 2016-02-29 18:55:15 -05:00
Florent Vilmart
f3bb2c99e0 Refactor and advancements
- Drops mailController, centralized in UserController
- Adds views folder for change_password
- Improves PromiseRouter to support text results
- Improves PromiseRouter to support empty responses for redirects
- Adds options to AdaptableController
- UsersController gracefully fails when no adapter is set
- Refactors GlobalConfig into same style for Routers
2016-02-29 18:55:14 -05:00
Florent Vilmart
7dd765256c Refactors verify_email, adds public html 2016-02-29 18:52:11 -05:00