Last change
on this file since 5720 was
4585,
checked in by gschwarz, 14 years ago
|
#1198 Authentication implemented with GetDateTimeString only for User: Gerhard
|
File size:
560 bytes
|
Line | |
---|
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 | {
|
---|
11 |
|
---|
12 | protected void Page_Load(object sender, EventArgs e)
|
---|
13 | {
|
---|
14 | }
|
---|
15 | protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
|
---|
16 | {
|
---|
17 | if( Membership.ValidateUser(Login1.UserName, Login1.Password ) )
|
---|
18 | FormsAuthentication.RedirectFromLoginPage(Login1.UserName, false);
|
---|
19 | }
|
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.