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 add method
|
|
setUpPasswordChange ( string emailFrom, string emailTo, string SMTP, string host, string port ) : bool |
Sets up password change procedure
|
Méthode | Description | |
---|---|---|
checkUser ( ) : bool |
Checks if user that have provide password is stored in database
|
public User ( string uName, string uPassword ) : System | ||
uName | string | |
uPassword | string | |
Résultat | System |
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 |
public isUserNameExists ( string uName ) : bool | ||
uName | string | |
Résultat | bool |
public saveUser ( |
||
user | variable type of user | |
Résultat | bool |
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 |