C# Class Cats.Web.Hub.Controllers.AccountController

Inheritance: BaseController
Datei anzeigen Open project: edgecomputing/cats

Public Methods

Method Description
AccountController ( IMembershipWrapper membershipObject, IFormsAuthenticationWrapper formsAuthenticationObject, IUserProfileService userProfileService, Cats.Services.Hub.IForgetPasswordRequestService forgetPasswordRequestService, Cats.Services.Hub.ISettingService settingService, IUserAccountService userAccountService, log4net.ILog log ) : System

Initializes a new instance of the AccountController class.

Initializes a new instance of the AccountController class.

ChangePasswordSuccess ( ) : System.Web.Mvc.ActionResult

Shows password success page

ConfirmPasswordChange ( ) : System.Web.Mvc.ActionResult

Confirms the password change.

ForgetPassword ( string key ) : System.Web.Mvc.ActionResult
ForgetPasswordRequest ( ) : System.Web.Mvc.ActionResult

Shows the Forget password page for the first time.

ISValidUserName ( string userName ) : System.Web.Mvc.ActionResult
LogOff ( ) : System.Web.Mvc.ActionResult

Logs off.

LogOn ( ) : System.Web.Mvc.ActionResult

Shows Logs the form.

NotUnique ( string UserName ) : System.Web.Mvc.ActionResult
Register ( ) : System.Web.Mvc.ActionResult

Registers this instance.

Protected Methods

Method Description
Initialize ( System.Web.Routing.RequestContext requestContext ) : void

Initializes data that might not be available when the constructor is called.

Private Methods

Method Description
ChangePassword ( ) : System.Web.Mvc.ActionResult
ChangePassword ( ChangePasswordModel model ) : System.Web.Mvc.ActionResult
ChangeUserSettings ( UserPreferenceViewModel model ) : System.Web.Mvc.ActionResult
ErrorCodeToString ( MembershipCreateStatus createStatus ) : string
ForgetPassword ( ForgotPasswordModel model ) : System.Web.Mvc.ActionResult
ForgetPasswordRequest ( ForgotPasswordRequestModel model ) : System.Web.Mvc.ActionResult
LogOn ( LogOnModel model, string returnUrl = "" ) : System.Web.Mvc.ActionResult
RedirectToLocal ( string returnUrl ) : System.Web.Mvc.ActionResult
Register ( RegisterModel model ) : System.Web.Mvc.ActionResult

Method Details

AccountController() public method

Initializes a new instance of the AccountController class. Initializes a new instance of the AccountController class.
public AccountController ( IMembershipWrapper membershipObject, IFormsAuthenticationWrapper formsAuthenticationObject, IUserProfileService userProfileService, Cats.Services.Hub.IForgetPasswordRequestService forgetPasswordRequestService, Cats.Services.Hub.ISettingService settingService, IUserAccountService userAccountService, log4net.ILog log ) : System
membershipObject IMembershipWrapper The membership object.
formsAuthenticationObject IFormsAuthenticationWrapper The forms authentication object.
userProfileService IUserProfileService
forgetPasswordRequestService Cats.Services.Hub.IForgetPasswordRequestService
settingService Cats.Services.Hub.ISettingService
userAccountService IUserAccountService
log log4net.ILog
return System

ChangePasswordSuccess() public method

Shows password success page
public ChangePasswordSuccess ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

ConfirmPasswordChange() public method

Confirms the password change.
public ConfirmPasswordChange ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

ForgetPassword() public method

public ForgetPassword ( string key ) : System.Web.Mvc.ActionResult
key string
return System.Web.Mvc.ActionResult

ForgetPasswordRequest() public method

Shows the Forget password page for the first time.
public ForgetPasswordRequest ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

ISValidUserName() public method

public ISValidUserName ( string userName ) : System.Web.Mvc.ActionResult
userName string
return System.Web.Mvc.ActionResult

Initialize() protected method

Initializes data that might not be available when the constructor is called.
protected Initialize ( System.Web.Routing.RequestContext requestContext ) : void
requestContext System.Web.Routing.RequestContext The HTTP context and route data.
return void

LogOff() public method

Logs off.
public LogOff ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

LogOn() public method

Shows Logs the form.
public LogOn ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

NotUnique() public method

public NotUnique ( string UserName ) : System.Web.Mvc.ActionResult
UserName string
return System.Web.Mvc.ActionResult

Register() public method

Registers this instance.
public Register ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult