I'm not very familiar with the Membership API as I use my own authentication system, but take a look at the CreateUser() method. I imagine that it will automatically handle the password hashing if you pass it a password in plain text.
Worked right off the bat Pankil. The little hammer and green globe in the Solution Explorer.
Huge thanks. My first professional website for business flys. A remake of our payroll system from Cobol/Vsam to ASP.NET/SQL (read only and the old system can be shut down now.)
And most of my education came from 'Asp.net in 24 hours', a online SQL tutoural, and this forum!
Paul
Marked as answer by Deaf Smith on Jan 10, 2013 06:09 PM
For the long term, I recommend you implement a User Administration console for your application so that future supporters of your app don't have to use embedded controls within Visual Studio.
"Dream as if you'll live forever, live as if you'll die today." --James Dean
Deaf Smith
Member
5 Points
70 Posts
How to add new users to a login DB
Jan 10, 2013 02:59 PM|LINK
Along time ago (years!) I added a login and logout page and the DB needed on the server using 2.0 framework.
dbo.aspnet_Membership, dbo.aspnet_Users, dbo.aspnet_UsersInRoles, etc...
and such. But I need to add new users and their passwords to the system.
I can see in the DB the passwords are encripted so there has to be a mechanism to add new ones.
Any ideas?
Thanks!
AceCorban
Star
12318 Points
2269 Posts
Re: How to add new users to a login DB
Jan 10, 2013 03:14 PM|LINK
I'm not very familiar with the Membership API as I use my own authentication system, but take a look at the CreateUser() method. I imagine that it will automatically handle the password hashing if you pass it a password in plain text.
http://msdn.microsoft.com/en-us/library/8ayhh5e2.aspx
And this link is an actual tutorial that steps you through the process:
http://www.asp.net/web-forms/tutorials/security/membership/creating-user-accounts-cs
Pankil
Member
141 Points
77 Posts
Re: How to add new users to a login DB
Jan 10, 2013 03:16 PM|LINK
Hello
Just go to configuration Management of your web-site and then add new User. You can fine configuration management in top of solution exploler.
Pankil
Deaf Smith
Member
5 Points
70 Posts
Re: How to add new users to a login DB
Jan 10, 2013 06:09 PM|LINK
Worked right off the bat Pankil. The little hammer and green globe in the Solution Explorer.
Huge thanks. My first professional website for business flys. A remake of our payroll system from Cobol/Vsam to ASP.NET/SQL (read only and the old system can be shut down now.)
And most of my education came from 'Asp.net in 24 hours', a online SQL tutoural, and this forum!
Paul
AceCorban
Star
12318 Points
2269 Posts
Re: How to add new users to a login DB
Jan 10, 2013 09:04 PM|LINK
For the long term, I recommend you implement a User Administration console for your application so that future supporters of your app don't have to use embedded controls within Visual Studio.
Deaf Smith
Member
5 Points
70 Posts
Re: How to add new users to a login DB
Jan 11, 2013 02:06 PM|LINK
Ok then this will be third party software or is it part of Sql Server Managment Studio (which I use on the production server.)
thanks!
sukumarraju
All-Star
16931 Points
2999 Posts
Re: How to add new users to a login DB
Jan 14, 2013 05:32 PM|LINK
No.
Simply customize the app downloadable at
http://www.4guysfromrolla.com/articles/052307-1.aspx
Application Architecture Guide 2.0
My Blog
Twitter
Deaf Smith
Member
5 Points
70 Posts
Re: How to add new users to a login DB
Jan 14, 2013 08:46 PM|LINK
Thanks
On it now.