C# 클래스 PERMWebSolution.Models.User

파일 보기 프로젝트 열기: VK-EIF/PERM-WEB-SOURCE 1 사용 예제들

공개 메소드들

메소드 설명
User ( ) : System

Empty constructor

User ( string sessionID ) : System

User ( string uName, string uPassword ) : System

Constructo that accepts User and assigns to local class variable

changeUserPassword ( string password, string key ) : bool

Method changes user password

chekUserSession ( ) : bool

Method checks if the session id is valid

isUserNameExists ( string uName ) : bool

Checks userName is already present in database

logInUser ( ) : string

Method checks if user is registered.

saveUser ( User user ) : bool

User add method

setUpPasswordChange ( string emailFrom, string emailTo, string SMTP, string host, string port ) : bool

Sets up password change procedure

비공개 메소드들

메소드 설명
checkUser ( ) : bool

Checks if user that have provide password is stored in database

메소드 상세

User() 공개 메소드

Empty constructor
public User ( ) : System
리턴 System

User() 공개 메소드

public User ( string sessionID ) : System
sessionID string
리턴 System

User() 공개 메소드

Constructo that accepts User and assigns to local class variable
public User ( string uName, string uPassword ) : System
uName string
uPassword string
리턴 System

changeUserPassword() 공개 메소드

Method changes user password
public changeUserPassword ( string password, string key ) : bool
password string new pasword to be stored
key string key value indicating that user requested password change
리턴 bool

chekUserSession() 공개 메소드

Method checks if the session id is valid
public chekUserSession ( ) : bool
리턴 bool

isUserNameExists() 공개 메소드

Checks userName is already present in database
public isUserNameExists ( string uName ) : bool
uName string
리턴 bool

logInUser() 공개 메소드

Method checks if user is registered.
public logInUser ( ) : string
리턴 string

saveUser() 공개 메소드

User add method
public saveUser ( User user ) : bool
user User variable type of user
리턴 bool

setUpPasswordChange() 공개 메소드

Sets up password change procedure
public setUpPasswordChange ( string emailFrom, string emailTo, string SMTP, string host, string port ) : bool
emailFrom string From section email adress
emailTo string To whom emai will be sent
SMTP string SMTP server name
host string URI host
port string port on which site runs
리턴 bool