C# Class JordanRift.Grassroots.Web.Controllers.AccountController

Inheritance: GrassrootsControllerBase
Afficher le fichier Open project: JordanRift/Grassroots Class Usage Examples

Méthodes publiques

Méthode Description
AccountController ( IUserProfileRepository userProfileRepository, IAccountMailer accountMailer, ICampaignDonorRepository campaignDonorRepository ) : System
Activate ( string hash, string redirect = "" ) : System.Web.Mvc.RedirectToRouteResult

Check if activation hash is valid. * If yes, set user profile IsActivated to true and redirect to login * If no, redirect to AwaitingActivation

AwaitingActivation ( ) : System.Web.Mvc.ActionResult
CalculateSleepSeconds ( int failedLogins, int maxPasswordAttempts ) : int
ChangePasswordSuccess ( ) : System.Web.Mvc.ActionResult
ForgotPassword ( ) : System.Web.Mvc.ActionResult
LogOff ( ) : System.Web.Mvc.ActionResult
LogOn ( string returnUrl = "" ) : System.Web.Mvc.ActionResult
Register ( string returnUrl = "" ) : System.Web.Mvc.ActionResult
UpdatePassword ( string hash ) : System.Web.Mvc.ActionResult

Méthodes protégées

Méthode Description
Initialize ( System.Web.Routing.RequestContext requestContext ) : void

Private Methods

Méthode Description
AuthenticateUser ( LogOnModel model, string returnUrl = "" ) : System.Web.Mvc.ActionResult
ChangePassword ( string returnUrl = "" ) : System.Web.Mvc.ActionResult
MapAuthorizeModel ( UserProfile userProfile, Organization organization, string returnUrl = "" ) : AuthorizeModel
MapPasswordReset ( UserProfile userProfile ) : PasswordResetModel
MapWelcomeModel ( UserProfile userProfile, Organization organization ) : WelcomeModel
PasswordChangeFailed ( ChangePasswordModel model ) : System.Web.Mvc.ActionResult
RegisterUser ( RegisterModel model, string returnUrl = "" ) : System.Web.Mvc.ActionResult
SavePassword ( ChangePasswordModel model, string returnUrl = "" ) : System.Web.Mvc.ActionResult
SendAuthorizationNote ( AuthorizeModel model ) : System.Web.Mvc.ActionResult
SendPasswordReset ( ForgotPasswordModel model ) : System.Web.Mvc.ActionResult
UpdateForgottenPassword ( string hash, UpdatePasswordModel model ) : System.Web.Mvc.ActionResult
ValidateLogon ( UserProfile userProfile, LogOnModel model, string url, int &failedLogins, bool &mustResetPassword ) : System.Web.Mvc.ActionResult

Method Details

AccountController() public méthode

public AccountController ( IUserProfileRepository userProfileRepository, IAccountMailer accountMailer, ICampaignDonorRepository campaignDonorRepository ) : System
userProfileRepository IUserProfileRepository
accountMailer IAccountMailer
campaignDonorRepository ICampaignDonorRepository
Résultat System

Activate() public méthode

Check if activation hash is valid. * If yes, set user profile IsActivated to true and redirect to login * If no, redirect to AwaitingActivation
public Activate ( string hash, string redirect = "" ) : System.Web.Mvc.RedirectToRouteResult
hash string ashed string to compare
redirect string
Résultat System.Web.Mvc.RedirectToRouteResult

AwaitingActivation() public méthode

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

CalculateSleepSeconds() public méthode

public CalculateSleepSeconds ( int failedLogins, int maxPasswordAttempts ) : int
failedLogins int
maxPasswordAttempts int
Résultat int

ChangePasswordSuccess() public méthode

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

ForgotPassword() public méthode

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

Initialize() protected méthode

protected Initialize ( System.Web.Routing.RequestContext requestContext ) : void
requestContext System.Web.Routing.RequestContext
Résultat void

LogOff() public méthode

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

LogOn() public méthode

public LogOn ( string returnUrl = "" ) : System.Web.Mvc.ActionResult
returnUrl string
Résultat System.Web.Mvc.ActionResult

Register() public méthode

public Register ( string returnUrl = "" ) : System.Web.Mvc.ActionResult
returnUrl string
Résultat System.Web.Mvc.ActionResult

UpdatePassword() public méthode

public UpdatePassword ( string hash ) : System.Web.Mvc.ActionResult
hash string
Résultat System.Web.Mvc.ActionResult