C# Class MvcApplication3.Controllers.SGAccountController

This class handles all the normal logon, logoff, register, change password, and forgot password operations that occur in the public part of your web application.
Inheritance: BaseController
ファイルを表示 Open project: kahanu/MvcInstaller

Public Methods

Method Description
ChangePasswordSuccess ( ) : System.Web.Mvc.ActionResult
ForgotPassword ( ) : System.Web.Mvc.ActionResult

This allows the non-logged on user to have his password reset and emailed to him.

ForgotPasswordSuccess ( ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
Register ( ) : System.Web.Mvc.ActionResult
SGAccountController ( ) : System

Private Methods

Method Description
BuildMessageBody ( string userName, string password, string filePath ) : string

This function builds the email message body from the ResetPassword.html file.

ChangePassword ( ) : System.Web.Mvc.ActionResult
ChangePassword ( SecurityGuard.ViewModels.ChangePasswordViewModel model ) : System.Web.Mvc.ActionResult
ErrorCodeToString ( MembershipCreateStatus createStatus ) : string
ForgotPassword ( SecurityGuard.ViewModels.ForgotPasswordViewModel model ) : System.Web.Mvc.ActionResult
LogOff ( ) : System.Web.Mvc.ActionResult
LogOn ( ) : System.Web.Mvc.ActionResult
LogOn ( SecurityGuard.ViewModels.LogOnViewModel model, string returnUrl ) : System.Web.Mvc.ActionResult
Mail ( string emailTo, string emailFrom, string subject, string body, bool isHtml ) : void

This method encapsulates the email function.

Register ( SecurityGuard.ViewModels.RegisterViewModel model ) : System.Web.Mvc.ActionResult

Method Details

ChangePasswordSuccess() public method

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

ForgotPassword() public method

This allows the non-logged on user to have his password reset and emailed to him.
public ForgotPassword ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

ForgotPasswordSuccess() public method

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

Index() public method

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

Register() public method

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

SGAccountController() public method

public SGAccountController ( ) : System
return System