asp.net-membership

Using AspNetSqlMembershipProvider in MVC5

送分小仙女□ 提交于 2021-02-18 18:53:53
问题 working with MVC5 and trying to integrate AspNetSqlMembershipProvider than the default provider or simple membership provider. Is that possible to use AspNetSqlMembershipProvider with MVC5 ? All login and register codes looks clumsy and I am not able to figure out what exactly UserManager . I did all necessary alterations in the web.config level, still my users are not validating with the SQL Database which we have created. 回答1: AspNetSqlMembershipProvider is deprecated. ASP.NET Universal

Using AspNetSqlMembershipProvider in MVC5

守給你的承諾、 提交于 2021-02-18 18:53:41
问题 working with MVC5 and trying to integrate AspNetSqlMembershipProvider than the default provider or simple membership provider. Is that possible to use AspNetSqlMembershipProvider with MVC5 ? All login and register codes looks clumsy and I am not able to figure out what exactly UserManager . I did all necessary alterations in the web.config level, still my users are not validating with the SQL Database which we have created. 回答1: AspNetSqlMembershipProvider is deprecated. ASP.NET Universal

Slow authentication to LDAP Server on initial login attempt

与世无争的帅哥 提交于 2021-01-29 02:14:53
问题 The application I setup uses an AspNetActiveDirectoryMembershipProvider to an LDAP server with Forms Authentication. The user authenticates properly, but the first time a user tries to log in a new browser window causes a delay of over one minute till it authenticates. If the user logs out of the application (but doesn't close the browser) and tries to log back in it only takes around 6-7 seconds to authenticate. I figure the second authentication is using a cached connection or socket to

Is there a bug in the hashfunction of the ASP.NET DefaultMembershipProvider?

扶醉桌前 提交于 2020-04-11 12:09:12
问题 I am migrating my legacy ASP.NET webforms application to start using the ASP.NET build-in DefaultMembershipProvider. My old homebrewn authenticationmodule used to store SHA256 hashes of passwords. I figured that 'upgrading' to the DefaultMembershipProvider, which also stores hashes in the SQL DB, would mean that I could migrate these hashes as well and therefore offer painless upgrade for current users (so they wouldn't have to reset their password). Now, this didn't quite work as planned

ASP.NET Membership ChangePassword control - Need to check for previous password

帅比萌擦擦* 提交于 2020-02-23 11:52:18
问题 I have a new table that hold old passwords, I need to check if there is a match. If there is a match I need the ChangePassword contol to NOT change the password. I need to tell the user that this password was used and pic a new one. I can't seem to be able to interrupt the control from changing the password. Maybe I am using the wrong event. Here is a piece of my code, or how I wish it would work. I appreciate all your help. protected void ChangePassword1_ChangedPassword(object sender,

MVC4 - Membership - SQL Server Compact 4.0 - Exception: Unable to find the requested .Net Framework Data Provider

被刻印的时光 ゝ 提交于 2020-02-01 09:40:28
问题 The InitializeDatabaseConnection Method documentation says we can use the MVC 4 "Internet" template's generated membership functionality with SQLCE (SQL Server Compact 4.0 Local Database). I've used this template many times before and have never had a problem when I didn't fiddle with anything and simply used the localDb (the default) that is generated by the Entity Framework the first time we register a user. My requirement is to get the membership tables that are by default generated into

Two different ASP.Net Membership providers on the same web-solution

戏子无情 提交于 2020-01-25 01:03:11
问题 I have built two websites, both of them use a custom membership provider I have written myself. One of these sites is already a long time online and runs fine. Now I have installed the other site on the same webserver in the same Web as a different application. Also have I given a seperate ApplicationPool for each solution. If now the client logs on to one site, he looses the session on the other and vice versa. It's not possible to be loged on on both sites together. All the rest works fine.

How do I prevent duplicate membership users when using multiple roleproviders with different application names?

﹥>﹥吖頭↗ 提交于 2020-01-24 22:33:26
问题 I have a single membership provider which is using the '/' default application name. I then have multiple applications which share this common membership provider configuration. Each application has it's own role provider configuration, they all share the same database as the membership provider but use a different application name to isolate their roles from each other. When I create a member then a single user record is created and hence shared across all the applications. I then create

Form Cookie Expiring too soon on production server

不羁岁月 提交于 2020-01-24 21:07:11
问题 i have following settings in web.config <authentication mode="Forms"> <forms loginUrl="~/Account/login" slidingExpiration="true" timeout="2880" protection="All" /> </authentication> but the cookie expires in less than five minutes of inactivity. Any clue on what is happening? 回答1: I recognize this behavior from a web host where I run one of my sites. It all started when moving to new servers, prepared for dotNET 4. The web.config is completely ignored and, as you mention, five minutes seems

Form Cookie Expiring too soon on production server

时间秒杀一切 提交于 2020-01-24 21:06:17
问题 i have following settings in web.config <authentication mode="Forms"> <forms loginUrl="~/Account/login" slidingExpiration="true" timeout="2880" protection="All" /> </authentication> but the cookie expires in less than five minutes of inactivity. Any clue on what is happening? 回答1: I recognize this behavior from a web host where I run one of my sites. It all started when moving to new servers, prepared for dotNET 4. The web.config is completely ignored and, as you mention, five minutes seems