Last change
on this file since 5124 was
4585,
checked in by gschwarz, 14 years ago
|
#1198 Authentication implemented with GetDateTimeString only for User: Gerhard
|
File size:
560 bytes
|
Rev | Line | |
---|
[4476] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Web;
|
---|
| 5 | using System.Web.UI;
|
---|
| 6 | using System.Web.UI.WebControls;
|
---|
| 7 | using System.Web.Security;
|
---|
| 8 |
|
---|
| 9 | public partial class LoginForm : System.Web.UI.Page
|
---|
| 10 | {
|
---|
[4585] | 11 |
|
---|
[4476] | 12 | protected void Page_Load(object sender, EventArgs e)
|
---|
| 13 | {
|
---|
| 14 | }
|
---|
| 15 | protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
|
---|
| 16 | {
|
---|
[4585] | 17 | if( Membership.ValidateUser(Login1.UserName, Login1.Password ) )
|
---|
| 18 | FormsAuthentication.RedirectFromLoginPage(Login1.UserName, false);
|
---|
[4476] | 19 | }
|
---|
| 20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.