seneca-user
seneca-user copied to clipboard
User account business logic (Seneca microservice component)
gubu Open needed
This library is unusable if you have not loaded the seneca-promisify (and seneca-entity) plugin at startup. Source code is referencing the seneca.message method which is uniquely added by promisify. To...
waiting for fix: https://github.com/senecajs/seneca-entity/issues/57 https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/user.js#L205 ```javascript delete q.user_id // TODO waiting for fix: https://github.com/senecajs/seneca-entity/issues/57 if (0 < Object.keys(seneca.util.clean(q)).length) { // Add additional fields to standard fields. ```
seneca.alias method? https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/user.js#L100 ```javascript .message('hook:password,cmd:pass', intern.make_msg('cmd_pass', ctx)) // TODO seneca.alias method? .message('change:password', intern.make_msg('change_pass', ctx)) return { ```
@seneca/microcache - short duration cache of msg responses https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/user.js#L68 ```javascript // TODO @seneca/audit - record user modifications - e.g activate // TODO @seneca/microcache - short duration cache of msg responses...
@seneca/audit - record user modifications - e.g activate https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/user.js#L67 ```javascript var ctx = intern.make_ctx({}, options) // TODO @seneca/audit - record user modifications - e.g activate // TODO @seneca/microcache - short...
enable once update tests written https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/test/verify.calls.js#L284 ```javascript params: { handle: 'alice', // email: '[email protected]', // TODO enable once update tests written pass: 'alice-pass-change-02', verify: '`avc0:out.verify.code`' }, ndex ae8ad40..9babf4a 100644 ++...
enable once update tests written https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/test/verify.calls.js#L271 ```javascript params: { handle: 'alice', // email: '[email protected]', // TODO enable once update tests written pass: 'alice-pass-change-01', verify: '`avc0:out.verify.code`' }, ```
hide logs of expected errors https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/test/shared.js#L8 ```javascriptmodule.exports = { make_seneca: () => { // TODO hide logs of expected errors var seneca = Seneca({ legacy: false }) .test() .use('promisify') ndex...
seneca-msg-test should handle this https://github.com/senecajs/seneca-user/blob/bbc34b6801bc34328f14af60869616630d8c961d/test/messages.test.js#L35 ```javascript }) // TODO seneca-msg-test should handle this try { await run() } finally { ndex c80af40..5ea4e0f 100644 ++ b/test/shared.js ```