Symfony - Database driven login including a password - symfony

I'm new too Symfony 2 and need so help. I'm following this tutorial: http://symfony.com/doc/current/cookbook/security/entity_provider.html
It helps with creating a login system and I've managed to get that working mostly. However i the tutorial it only explain verifying using and email address or username. It has no mention of checking if the password is actually ok or how tell Doctrine which encryption algorithm to use or have to involve the salt.
If there is another article I should read that someone could point me too or if someone could explain to me how to do these thing I'd much appreciate it :)

a decent implementation of the user-mgmt is the https://github.com/FriendsOfSymfony/FOSUserBundle and its documentation
Used in many projects, been learning a lot when digging inside the bundle myself

Related

Connecting data two ways ASP.NET Core MVC

I'm quite new to development and I have recently gotten into ASP.NET Core and I need help to figure out the following:
I need to connect my "characters" to my users upon creation via linking the username to the certain character, how would I go about to do this?
My guess is that upon the create method POST in my "CharactersController" I should be able to edit the "UserName" column for the characters upon creation to be linked to the user currently creating the character. But I am unsure how to do this.
I have tried to find relevant information in the documentation and in different guides but nothing seems to be what I'm looking for.
I appreciate any answers, thank you!
If you've already setup authentication / authorization properly, you should be able to use the method
User.FindFirst(ClaimTypes.NameIdentifier).Value
provided by the HttpContextAccessor library.

Using PasswordHasher in Asp.net Mvc6, Identity 3.0

I've working on learning Asp.net, but I'm having troubles with the password hasher.
I want to use the non-modified version of the thing, but I'm severely lacking on instructions. Googling has failed me.
So it's a very very general question.
Would some one be so kind to provide a small tutorial on password hashing during User registration and login.
I would really appreciate it.

Password Reset Email

Within a Symfony2 application I'm building I've managed to get user account creation, login, updating profile working using bootstrap for the frontend and 'out of the box' Symfony2 for the rest. I need to add the ability for users to reset their passwords and/or have email sent with a generated password. I'll preface these questions with the fact I am new to developing in Symfony2. My questions are 1) Do I try and use FOSUserBundle in parallel with code I have already written or 2) Are there ways to implement this without FOSUserBundle. These are questions are really coming from a place of not knowing any better.
Thank you in advance.
I'm not a symfony guy but I only know that Symfony embraces the "don't reinvent the wheel" philosophy. Symfony itself is a collection of bundles. If this is your first time with a web framework I can tell that you've passed a lot of time and effort implementing something that other developers offered to you. Believe me if you want to build something powerful and standardized FOSuserbundle will undoubtedly satisfy your need.
Always sad to see a genuinely asked question downvoted.
#Brent was a Symfony novice myself and in many ways probably still am. I wouldn't say Symfony embraces "don't reinvent the wheel" but rather "speed up app development". I am sure you can take days searching Stackoverflow and find possible (probably a little bit outdated) solutions to your problem or do as #AzizFCB suggested and use a ready Symfony bundle, in fact, the most widely used and adopted Symfony bundle. Unless your app's core activity is solving people's login and forgot password problems. I would strongly advise to use FOSUserBundle, solve that problem in a few hours importantly including updates (especially security) that you don't need to manage (but if you can please contribute to) and focus your efforts on coding your apps core activity(s).

I need help integrating and using elFinder with ASP.NET

I have been playing with this for a day and cannot seem to get it to work.
elFinder has many options for connections, such as PHP and Python among others. Someone made a third party ASP.NET connector for it and it was reported that it worked.
Here is the page for the DLL for it:
http://elfinderconnectornet.codeplex.com/releases/view/55319
I am having tremendous trouble figuring out how to hook the existing elFinder to ASP.NET.
I hope to find someone who has had some experience with this and can assist me. I'm not sure what other information I can give you.
Any help is appreciated.
There's an even better option right now called ElFinder.Net Connector hosted at CodePlex. The coordinator and main developer of the port Evgeny Noskov is a super considerate person and he listens to feedback and acts as you can read here in a discussion I posted:
Add startPath and uploadMaxSize to connector options
I liked elFinder.Net so much that I wrote a post to showcase a simple use case that is a great fit for it:
Manage folders & files in your ASP.NET MVC app with elFinder.Net
Hope it helps.
See here: http://elfinderaspnet.codeplex.com/
For now it provides some basic functionality but seems to be usable.
ElFinder is very easy to configure and use.
I did some research on 'Implementing ElFinder on multiple pages using MVC' and found "ElFinder.Net Connector" NOT AVAILABLE.
Download the simple MVC sample project from here

Is there an ASP.NET equivalent of SwiftMailer for PHP?

We are looking at sending some email notifications to about 1100 employees at a time. Each email would contain some personalized information, so sending one email with a huge BCC is out. Looping through and sending one at a time seems dumb.
In some of my homebrew projects I solved this type of problem by using SwiftMailer to send bulk email from PHP. Is there any equivalent, preferably free, for ASP.NET?
Update:
It seems like there is no direct equivalent to SwiftMailer (at least one that's free) so I've gone ahead and marked the answer that we didn't use another library. We haven't had any problems sending email though, and our code has been in production for quite a while now.
There are also new templating options that look interesting: http://razorengine.codeplex.com/
Maybe you can simply use SmtpClient class which is already bundled with .Net framework?
See
http://www.aspnettutorials.com/tutorials/email/email-aspnet2-vb.aspx for simple tutorial
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx - msdn documentation and examples
You can take a look at the examples that come with the mailer libraries from http://www.advancedintellect.com/. It works with background threads and datasets. I did some php work with SwiftMailer previously. The AI products is what I have decided upon for my .Net development work.

Resources