any way to encrypt emails
I have a site that collects some personal info from users, and I want to hide the emails. I can make sure they don't appear on any page, but I also would like to hide them in the database. So would I...
View ArticleFind out about the user's email are available but if not then create a new...
Helloit is such that I started making so that you can create user on the website, but I can not really comment on,it is such that it should find out about the guest's e-mail found in the database...
View ArticleSignInManager.PasswordSignInAsynch calling ResetAccessFailedCountAsync
In my Login method in the account controller, I have the following code [HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public async Task<ActionResult> Login(LoginViewModel model, string...
View ArticleAuthentication Issue in MVC 4
I have code for successful Login,Here is my codeNote: I am using my own membership Provider,I am not using its own membership class if (ModelState.IsValid) { if (user.IsValid(user.Email,...
View ArticleIs it possible to implement ASP.NET Identity 2.0 with Database first or EDMX...
Can we use ASP.NET Identity with Database first approach or EDMX ?(I am using EF 6)I am working on an application which uses Simple Membership where we use Custom Membership Provider having few...
View ArticleShould I set IsReferenceMode to True when I use custom...
If I cached the Security Token in a custom sessionSecurityTokenCache, should I use IsReferenceMode?Because without setting IsReferenceMode to true, the FedAuth cookie is still large although the cache...
View ArticleWrite access permission exception when creating a folder
I want to create a unique folder for every user to upload image files into. I can get files uploaded to a general folder but when I try to create a new folder specifically for a new user I'm getting...
View Articlesend email using createuserwizard during registration
I am using create user wizard for registration and want when the registration is successful user should be send activation link.after activation user must be sent username and password to the email...
View ArticleUserId is always 0 in Login in MVC4
I want to pass Userid with Email in Cookie but it always 0. if (user.IsValid(user.Email, user.Password)) { FormsAuthentication.SetAuthCookie(user.Email + "|" + user.Id, true); return...
View Articlehow to check if user loggedin twice using same account using different browser
I want check if a user logged in one browser and at the same time in other browser he does same account login...how to find that if user did two login in one account ?
View ArticleCustom Server-Side session token + IsReferenceMode=false will store the...
From here, IsReferenceMode determines whether the session should be stored in the session cookie or whether the session content should be stored on the server side, using the cookie to store just a...
View ArticleCompare MVC 5 ASP.NET role provider and custom role provider?
Hi, I am building a new MVC 5 application, still not sure should I choose the MVC build-in ASP.NET role and membership provider or should I build custom role provide, the concern for me to use MVC...
View ArticleRedirect to login page if not logged in.
Hi,Some of my aspx forms are very important pages. I want whenever a user if not logged in, and if he puts the page name directly in the url he should be directed to login page of the site. Please help
View ArticleNeed help for converting c# encryption code to javascript
I have this below code in c# i need to convert it into nodejs i would really appriciate some help in this. This is encryption and decryption code in c#Rfc2898DeriveBytes passwordDb2 = new...
View ArticleArchitecture advice sought: desktop app using asp.net login/password
Scenario: an asp.net website using member login. Site built by someone else using a Microsoft template site. A SQLServer DB is integrated into the site.Second, a desktop C# app designed to acquire...
View ArticleCreateUserWizrard Failing with System.NullReferenceException
HiI was wondering if someone could help me with an issue I am having. I have a createuserwizard which I am customizing. However, I seem to be getting a System.NullReferenceException when clicking the...
View ArticleSecuring web api behind firewall
We are building a system which will have website hosted in cloud/with some web hosting company and it will talk to web apis hosted behind a firewall on-premises servers and the apis will communicate...
View ArticleLogin in site
Hi good morning everyoneI need a help.How i login in site with a application C#Ex: hotmail.com -> login and pass -> submit.Thank for all.
View Articlehow to get token info inside my Page_Load ?
Hello,I have a web site where I use ws federation to authenticate I have follow this site and some others for web config configuration but I don't know in may page_load() event how to use token info to...
View ArticleMigrating old webforms sites to new membership model?
Hi All: I have a dozen legacy webforms websites sharing an old ASP.NET Framework 2 Membership and Roles database for authentication. All the websites are running under .NET 4 app pools on the same...
View Article