I am trying to implement login authentication using webform template. Previously, I have used simple login process using stored procedure. Now I want to change my login process to the template provided by the web form template.
>> But I do not know what is the required database design for that?
>> How to implement login procedure using the template?
>> My login criteria is user have username and password. User can not login on multiple machines at the same time, time out, reset for forget password provided correct username.
>> How can I implement the template for these conditions?
>>But I do not know what is the required database design for that?
As far as I know. webform template implement login authentication by using identity,
There is no need for you to design database, you just need to add a connection string entry for the database.The database will be created at runtime by EntityFramework for the Identity entities.
scala_1988
>> How to implement login procedure using the template?
You could implement login procedure by using UserManager. you could see code behind of pages which in Account folder
scala_1988
>> My login criteria is user have username and password. User can not login on multiple machines at the same time, time out, reset for forget password provided correct username.
Identity does not have a built-in way to track simultaneous logins, but you can do a work-around
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
35 Points
148 Posts
using web form template authentication in existing web form project
Sep 09, 2017 09:07 AM|scala_1988|LINK
I am trying to implement login authentication using webform template. Previously, I have used simple login process using stored procedure. Now I want to change my login process to the template provided by the web form template.
>> But I do not know what is the required database design for that?
>> How to implement login procedure using the template?
>> My login criteria is user have username and password. User can not login on multiple machines at the same time, time out, reset for forget password provided correct username.
>> How can I implement the template for these conditions?
Star
8670 Points
2882 Posts
Re: using web form template authentication in existing web form project
Sep 11, 2017 06:10 AM|Cathy Zou|LINK
Hi scala_1988,
As far as I know. webform template implement login authentication by using identity,
There is no need for you to design database, you just need to add a connection string entry for the database.The database will be created at runtime by EntityFramework for the Identity entities.
You could implement login procedure by using UserManager. you could see code behind of pages which in Account folder
Identity does not have a built-in way to track simultaneous logins, but you can do a work-around
Have a look at these:
https://stackoverflow.com/questions/27769860/aspnet-identity-avoid-simultaneous-login-same-account
http://tech.trailmax.info/2015/09/prevent-multiple-logins-in-asp-net-identity/
You could get full understanding by referring to the following link:
https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project
https://www.youtube.com/watch?v=D829sZcfpMo
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.