C# Class FSNEP.Controllers.AccountController

Inheritance: ApplicationController
Mostrar archivo Open project: ucdavis/FSNEP

Private Properties

Property Type Description
ChangePassword System.Web.Mvc.ActionResult
ChangePassword System.Web.Mvc.ActionResult
ChangeQuestionAnswer System.Web.Mvc.ActionResult
ForgotPassword System.Web.Mvc.ActionResult
LogOn System.Web.Mvc.ActionResult
NewUser System.Web.Mvc.ActionResult
ResetPassword System.Web.Mvc.ActionResult
ValidateChangePassword bool
ValidateLogOn bool

Public Methods

Method Description
AccountController ( IFormsAuthentication formsAuth, IMembershipService service, IMessageGateway messageGateway ) : System
ChangePasswordSuccess ( ) : System.Web.Mvc.ActionResult
ChangeQuestionAnswer ( ) : System.Web.Mvc.ActionResult
ChangeQuestionAnswerSuccess ( ) : System.Web.Mvc.ViewResult
ForgotPassword ( ) : System.Web.Mvc.ActionResult

Forgot password will ask the user for their username

LogOff ( ) : System.Web.Mvc.ActionResult
LogOn ( ) : System.Web.Mvc.ActionResult
NewUser ( System.Guid id ) : System.Web.Mvc.ActionResult

Allows a new user to change their password and question/answer given a valid token

ResetPassword ( string id ) : System.Web.Mvc.ActionResult
ResetPasswordSuccess ( ) : System.Web.Mvc.ActionResult

Protected Methods

Method Description
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Private Methods

Method Description
ChangePassword ( ) : System.Web.Mvc.ActionResult
ChangePassword ( string currentPassword, string newPassword, string confirmPassword ) : System.Web.Mvc.ActionResult
ChangeQuestionAnswer ( string username, string password, string newQuestion, string newAnswer ) : System.Web.Mvc.ActionResult
ForgotPassword ( string id ) : System.Web.Mvc.ActionResult
LogOn ( string userName, string password, bool rememberMe, string returnUrl ) : System.Web.Mvc.ActionResult
NewUser ( System.Guid id, NewUserViewModel viewModel ) : System.Web.Mvc.ActionResult
ResetPassword ( string id, string passwordAnswer ) : System.Web.Mvc.ActionResult
ValidateChangePassword ( string currentPassword, string newPassword, string confirmPassword ) : bool
ValidateLogOn ( string userName, string password ) : bool

Method Details

AccountController() public method

public AccountController ( IFormsAuthentication formsAuth, IMembershipService service, IMessageGateway messageGateway ) : System
formsAuth IFormsAuthentication
service IMembershipService
messageGateway IMessageGateway
return System

ChangePasswordSuccess() public method

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

ChangeQuestionAnswer() public method

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

ChangeQuestionAnswerSuccess() public method

public ChangeQuestionAnswerSuccess ( ) : System.Web.Mvc.ViewResult
return System.Web.Mvc.ViewResult

ForgotPassword() public method

Forgot password will ask the user for their username
public ForgotPassword ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

LogOff() public method

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

LogOn() public method

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

NewUser() public method

Allows a new user to change their password and question/answer given a valid token
public NewUser ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

OnActionExecuting() protected method

protected OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
return void

ResetPassword() public method

public ResetPassword ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

ResetPasswordSuccess() public method

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