Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* l'authentification est associée cette section du web.config
- <authentication mode="Forms">
- <forms loginUrl="index.aspx" name=".ASPXAUTH">
- <credentials passwordFormat="Clear">
- <user name="marne" password ="marne"/>
- </credentials>
- </forms>
- </authentication>
- <authorization>
- <deny users="?"/>
- </authorization>
- */
- #region authentification
- string userName = Login1.UserName;
- string pwd = Login1.Password;
- //authentification via web.config
- if (FormsAuthentication.Authenticate(userName, pwd))
- {
- FormsAuthentication.RedirectFromLoginPage(userName, false);
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement