Method | Description | |
---|---|---|
AccessService ( ) : System | ||
AccessService ( IUserRepository user_repository, IRoleRepository role_repository ) : System | ||
CheckRole ( IS.Model.Item.Access.RoleItem role ) : bool | ||
CheckRole ( string role ) : bool | ||
CheckRoleByCode ( string role_code ) : bool | ||
GeneratePassword ( string pass, string salt ) : string |
Generate password
|
|
GetCurrentUser ( ) : |
||
Login ( string login, string password, bool remember ) : bool | ||
Login ( |
||
Logoff ( ) : void | ||
Register ( |
||
SetValue ( string cookieName, string cookieObject, System.DateTime dateStoreTo ) : void | ||
UserInRole ( |
||
UserInRole ( |
public AccessService ( IUserRepository user_repository, IRoleRepository role_repository ) : System | ||
user_repository | IUserRepository | |
role_repository | IRoleRepository | |
return | System |
public CheckRole ( IS.Model.Item.Access.RoleItem role ) : bool | ||
role | IS.Model.Item.Access.RoleItem | |
return | bool |
public CheckRoleByCode ( string role_code ) : bool | ||
role_code | string | |
return | bool |
public GeneratePassword ( string pass, string salt ) : string | ||
pass | string | Original password |
salt | string | User ID + " " + User.ID |
return | string |
public GetCurrentUser ( ) : |
||
return |
public Login ( string login, string password, bool remember ) : bool | ||
login | string | |
password | string | |
remember | bool | |
return | bool |
public Login ( |
||
user | ||
remember | bool | |
return | void |
public Register ( |
||
user | ||
return | void |
public SetValue ( string cookieName, string cookieObject, System.DateTime dateStoreTo ) : void | ||
cookieName | string | |
cookieObject | string | |
dateStoreTo | System.DateTime | |
return | void |
public UserInRole ( |
||
user | ||
role | IS.Model.Item.Access.RoleItem | |
return | bool |
public UserInRole ( |
||
user | ||
role_code | string | |
return | bool |