C# Class Informedica.GenForm.Mvc3.Controllers.LoginController

Inheritance: Controller
Mostra file Open project: halcwb/GenForm Class Usage Examples

Public Methods

Method Description
ChangePassword ( String userName, String currentPassword, String newPassword ) : System.Web.Mvc.ActionResult
GetCurrentEnvironment ( ) : System.Web.Mvc.ActionResult
GetLoggedInUser ( ) : System.Web.Mvc.ActionResult
GetLoginPresentation ( String userName, String password ) : System.Web.Mvc.ActionResult
Login ( UserLoginDto dto ) : System.Web.Mvc.ActionResult
LoginController ( IDatabaseServices databaseServices ) : System
Logout ( String userName ) : System.Web.Mvc.ActionResult
SetEnvironment ( String environment ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
GetEnvironment ( UserLoginDto dto ) : string
GetUser ( String userName, String password ) : UserLoginDto
SetLoginCookie ( string userName ) : void

Method Details

ChangePassword() public method

public ChangePassword ( String userName, String currentPassword, String newPassword ) : System.Web.Mvc.ActionResult
userName String
currentPassword String
newPassword String
return System.Web.Mvc.ActionResult

GetCurrentEnvironment() public method

public GetCurrentEnvironment ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

GetLoggedInUser() public method

public GetLoggedInUser ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

GetLoginPresentation() public method

public GetLoginPresentation ( String userName, String password ) : System.Web.Mvc.ActionResult
userName String
password String
return System.Web.Mvc.ActionResult

Login() public method

public Login ( UserLoginDto dto ) : System.Web.Mvc.ActionResult
dto Informedica.GenForm.Services.UserLogin.UserLoginDto
return System.Web.Mvc.ActionResult

LoginController() public method

public LoginController ( IDatabaseServices databaseServices ) : System
databaseServices IDatabaseServices
return System

Logout() public method

public Logout ( String userName ) : System.Web.Mvc.ActionResult
userName String
return System.Web.Mvc.ActionResult

SetEnvironment() public method

public SetEnvironment ( String environment ) : System.Web.Mvc.ActionResult
environment String
return System.Web.Mvc.ActionResult