C# Class PERMWebSolution.Models.User

Afficher le fichier Open project: VK-EIF/PERM-WEB-SOURCE Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
checkUser ( ) : bool

Checks if user that have provide password is stored in database

Method Details

User() public méthode

Empty constructor
public User ( ) : System
Résultat System

User() public méthode

public User ( string sessionID ) : System
sessionID string
Résultat System

User() public méthode

Constructo that accepts User and assigns to local class variable
public User ( string uName, string uPassword ) : System
uName string
uPassword string
Résultat System

changeUserPassword() public méthode

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
Résultat bool

chekUserSession() public méthode

Method checks if the session id is valid
public chekUserSession ( ) : bool
Résultat bool

isUserNameExists() public méthode

Checks userName is already present in database
public isUserNameExists ( string uName ) : bool
uName string
Résultat bool

logInUser() public méthode

Method checks if user is registered.
public logInUser ( ) : string
Résultat string

saveUser() public méthode

User add method
public saveUser ( User user ) : bool
user User variable type of user
Résultat bool

setUpPasswordChange() public méthode

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
Résultat bool