-
Notifications
You must be signed in to change notification settings - Fork 1.2k
e-mail confirmation at register & forgotten password #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A configuration to confirm the email address at registration is not yet available. But some people are working on it. |
Those are good news, thanks for the reply remicastaing. |
Has the latest version of nodemailer been considered? @remicastaing could you show me where the work is happening? 😄 |
I was considering |
@JaKXz, I also have a decent amount of work done on this. I actually implemented it in most of my projects that use fullstack. @remicastaing and I have been discussing the options available so far. I've mainly been waiting for a few other PRs to get into canary before I or Rémi, for that matter, made a PR. Not trying to speak for Rémi, I just know there were some other additions in the pipe that would simplify the implementation, ex. some of chester1000's work. |
Oh okay, cool! I was just curious @kingcody, thanks for clearing that up. |
Something kinda related to this is a "Forgot Password" feature. I was looking into the idea of adding it, but I found this thread and thought maybe it should be part of the same PR, or at least, come after it so as to use the same email template system & mailer. I would love to help with this any way I can. I'm trying to get a "minimal set of features" added to this project so it's "ready for production"! I freakin' love this generator. =) |
Good point @thomporter, I would love to see that as well. Let's use this issue to address both these things -- I'm looking forward to the PR. |
Here, you will find an attend to implement the two features with JWT (a nice idea from @kingcody). Please, clone, test and give some feedback. |
@remicastaing does node-mailer not fit your needs? Or was it just easier for you to use mailgun? |
I use node-mailer. Mailgun is just a mail service, like gmail, yahoo, etc... |
I see, my apologies :) thought you were saying mailgun had a module like node-mailer. Do you think it would be good to leverage the HTTP1.1 verbs in your routes? It would allow you to shorten them to something like:
Just a thought... |
Or something like that:
In the end, we're no getting or posting a mail. |
That looks good to me Rémi! I agree with changing the wording to read better. +1 |
From an Angular newbie software architect... how can I run or even get a static copy of the email/password reset branch you are working on? Thanks a lot. |
@jeffbuhrt, are you wanting to clone @remicastaing's fullstack repo to checkout his mail implementation? |
I also use jwt. Beats having to work with the tokens on the database level! Would be great to see this in angular fullstack. To me, this and throttling are the only lacking features. |
@kingcody Yes. I would like to see the work in progress. [I have been a developer since the early '80's. I have also been a public domain maintainer for Sc/XSpread, Afio, and on various project teams. I started using Angular a little over a month ago and have not yet figure out all the lay of of the land yet.] Thanks, -Jeff |
@jeffbuhrt, it looks like Rémi may have reset(?) his changes or perhaps deleted the original branch that he was referring to. I'll post up a link to what I have as far as that goes. |
I don't know what happened @kingcody. Now, it's back, @jeffbuhrt. |
@remicastaing Thanks for sharing that code! I was thinking about implementing it in my app too! |
You're welcome, @Awk34! Let me know about what you think about my implementation. |
@kingcody thanks again. @remicastaing are you doing improvements to your implementation and what are the plans for intergration to/as a generator. I can make fixes on this end available. [Still coming up to speed on the DaftMonk process for changes, etc.] |
I have worked more with the code and did some cleanups. I switched the password reset request from GET to POST (otherwise the new password is logged on the server among other security reasons). Attacker figures out you have an account (we leak if it was valid as well), sets a new password, you confirm whatever they set it to, you are logged in and don't think otherwise until next time you can't login. Or... if you changed the Admin screen to require knowing the old password before changing the password, you won't know the new hacked password. [You could of course recover again if the email wasn't changed in the middle by the attacker.]. Again, as I mentioned to @kingcody we might want to put the changes into a common place to come up with a common, safe, secure version for all to use. @remicastaing again thanks for sharing. |
I didn't think about this attack scenario. You've have to make a mistake (confirming the change) but, you're right @jeffbuhrt , the system is weaker.
No, not at this time. But I was thinking to add something to correlate accounts (local, FB, google) after the email address is validated.
I started working on it but didn't finish it (or couldn't keep up with all changes in the canari repo in august): https://github.com/remicastaing/generator-angular-fullstack/tree/mail |
Hey guys, sorry for the absence here lately. I'm going to be available for the next few weeks during Christmas so I'm going to try to get back on this. I definitely agree with @jeffbuhrt in relation to security matters. We really need to look this thing over and make sure we aren't exposing anything major. I'll be around this weekend, hopefully I get some of this posted and nailed down. |
How can we share the work? I can also save some time to improve the email capability of the generator. |
@kingcody ideas? I have updates I have made to my version, a copy of the clone of @remicastaing 's repo. I can merge the rest back into @remicastaing's clone... then what? [Do I fork then have @remicastaing pull from my clone or can I push to the @remicastaing's link?] It would be nice to have a shared area to all work from. Getting this into the common base even if we come up with a working template that people start making more improvements/enhancements to is a good goal. I would say a first step is a way/place we can share the refined output code. Next would be generator changes. @kingcody have you done much with taking what an output would look like and putting that into the generator? |
I could fork the canari branch of the generator and add an empty skeleton |
I forked canari as an empty skeleton: https://github.com/remicastaing/generator-angular-fullstack/tree/mail My old work is in: https://github.com/remicastaing/generator-angular-fullstack/tree/mail_old |
@remicastaing, I've taken a good bit from your idea of the underlying mailer functionality and attempted to implement it as a standalone feature. I already have some additional code that builds upon this mailer framework to send out email verification emails. Take a look and let me know what you think: Maybe we can get something like this tested and worked out and continue implementing the email verification on top of it... /cc @jeffbuhrt @JaKXz |
First thoughts:
I was exited to see your work and now I'm frustrated:
|
Well my thought for this was that its a nice basic mailer layout that can be used for lots of different purposes. That being said, I think that the email verification prompt could be when On the note of |
I've done nothing except sleeping and running over the yo generator in a new folder and now it works. Weird! |
Here is a WIP that uses the mailer feature to add email verification and password recovery to the generator. https://github.com/kingcody/generator-angular-fullstack/tree/temp/account-emails It currently lacks client side pages to facilitate the api usage. However I figured that posting it here might get some feedback or give someone else some ideas. |
@kingcody, your mailer works fine for me and I'm happy with what you have done. Have you ever tried to use |
you have any updates on this topic? |
@remicastaing thank you for your work, I just changed the ejs templates such as; Kick-start your next web app with <%= COMPANY %> the rest perfectly integrates into generated app |
I see this was marked for 3.2.0 but I can't see anything else on this feature, did this in fact get rolled into that release and I'm somehow missing it? |
@remicastaing You are awesome! Thank you 👍 |
Sup guys, is there a configuration to make the registration process to validate the email first? The use case is basically so the users don't start registering emails that are not of their property, this could lead to users impersonating other persons.
The text was updated successfully, but these errors were encountered: