Feathers: What about users and emails?

Created on 26 Feb 2016  路  9Comments  路  Source: feathersjs/feathers

What about users service?
Maybe we could make users service that provides the necessary functionality out of the box?

  • forgot password
  • reset password
  • verify password

Please tell me if there are any solutions to send email?
I need to implement the letter that users receive after registering, after a password reset, and so on.

Most helpful comment

@ekryski yes, my English is very bad ^_^. My native language is Russian. I try to learn English as soon as possible. But I have great difficulty. Learn javascript was much easier than English. :flushed::flushed::flushed:

All 9 comments

It is very important that this functionality was out of the box. I tried all the frameworks for node.js that are available today. Many boast that they can be easily integrated with React, Angular, Socket.io, etc...

But almost nowhere banal things out of the box:

  • User registration (with sending letters requesting confirmation email)
  • Authorization and authentication
  • Password recovery (with sending email with a link to reset your password)
  • The confirmation email (with sending email with a link to confirm your email)

It is necessary in every application that I do. And every time I have to write it from scratch.

It gives me a strong blood from an ass!

Let's do a service for sending email and user service with a basic set of functionality?
It would be great if we add it to the official repository and write documentation for it.

I can help with the creation of these services.

This should work easily and with minimal configuration. Thus it is necessary to have flexible configuration if necessary.

I guess it's time to get to work on some of the communication plugins. 馃帀

We talked about doing a Twilio plugin for SMS and one for Mandrill. With Mandrill's recent announcement that you have to have a paid MailChimp account, we probably want to make one for Postmarkapp.com, too.

It gives me a strong blood from an ass!

LOL. Wat. (not poking fun @kulakowka. Your English is quite good. That just made me laugh really hard)

@kulakowka yes we're all in the same boat there. Like @marshallswain said we've talked about this in terms of communication plugins that register services. feathers-authentication was the first plugin with this sort of structure.

I would actually suggest that a password service could be part of feathers-authentication. If we added a new sendgrid or Amazon ses plugin that registers a service you would just be able to call that service from a hook. Something like this:

function sendConfirmation(){
  return function(hook) {
     return hook.app.service('sendgrid').create(options);
  }
}

app.service('password').after({
  update: sendConfirmation()
});

@ekryski yes, my English is very bad ^_^. My native language is Russian. I try to learn English as soon as possible. But I have great difficulty. Learn javascript was much easier than English. :flushed::flushed::flushed:

@kulakowka you're doing great man! Don't feel embarrassed. It just made me laugh. Your English > my Russian :wink:

@ekryski i can give you some lessons. :beers:

Maybe we can use something like lockit for quick solve this problem?

Closing this in favour of tracking #241, #242 and https://github.com/feathersjs/feathers-authentication/issues/83.

Although you could use lockit to do this with Feathers I'm not sure that we want to depend on it. You would miss out on being able to do this over sockets or get socket events because it doesn't follow the service pattern and it's doing a lot more than we really need it to. It would be an alternative to feathers-authentication, your user service, and a mailer service.

I agree. In this case, you need to do this as soon as possible. I am ready to help.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings