Re: Help in forms authentication
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 11/23/05
- Next message: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Previous message: aoextra_at_hotmail.com: "run dos command from asp.net"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Maybe reply: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 23 Nov 2005 06:25:57 -0800
Hello JessyEzzy,
you could use the <credential> element (a child of <forms>)
in this element you can put usernames and passwords (you should use hashed
passwords)
also look at FormsAuthentication.HashPasswordForStoringInConfigFile and FormsAuthentication.Authenticate
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> I am using forms authentication against a database
>
> <authentication mode="Forms">
> <forms name="MyFormsAuthentication" loginUrl="login.aspx" path="/"
> protection="All" timeout="20" />
> </authentication>
> <authorization>
> <deny users="?" />
> </authorization>
> I have a requirment for a type of login where the account info, will
> be hard coded and don't come from the database, and that specific
> account will have access to only one page and won't be able to access
> any other page, how can I implement that?
>
> Thanks in advance.
>
- Next message: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Previous message: aoextra_at_hotmail.com: "run dos command from asp.net"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Maybe reply: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|