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
Afficher le fichier Open project: kahanu/MvcInstaller

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ChangePasswordSuccess ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

ForgotPassword() public méthode

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

ForgotPasswordSuccess() public méthode

public ForgotPasswordSuccess ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

Index() public méthode

public Index ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

Register() public méthode

public Register ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

SGAccountController() public méthode

public SGAccountController ( ) : System
Résultat System