|
VB.NET • Create a Central Authentication Method Listing 2. Take a look at the VB code-behind file for the Login screen. A SecurityUser object holds all the property information for the user. Imports System.Web.Caching
Imports System.Web.UI
Public Class SecurityUser
Private m_Username As String
Private m_Password As String
Private m_Role As String
Public Property Name() As String
Get
Return m_Username
End Get
Set(ByVal Value As String)
m_Username = Value
End Set
End Property
Public Property Password() As String
Get
Return m_Password
End Get
Set(ByVal Value As String)
m_Password = Value
End Set
End Property
Public Property Role() As String
Get
Return m_Role
End Get
Set(ByVal Value As String)
m_Role = Value
End Set
End Property
Public Function Validate() As Boolean
End Function
End Class
|