Quantcast
Channel: Security
Browsing all 4737 articles
Browse latest View live

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 Article


Find 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 Article


SignInManager.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 Article

Authentication 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 Article

Is 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 Article


Should 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 Article

Write 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 Article

send 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 Article


UserId 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 Article


how 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 Article

Custom 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 Article

Compare 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 Article

Redirect 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 Article


Need 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 Article

Architecture 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 Article


CreateUserWizrard 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 Article

Securing 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 Article


Login 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 Article

how 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 Article

Migrating 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
Browsing all 4737 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>