C# Class Daniel15.Web.Controllers.AccountController

Handles logging in and out
Inheritance: Controller
Show file Open project: Daniel15/Website

Public Methods

Method Description
AccountController ( SignInManager signInManager ) : System.Threading.Tasks
Login ( string returnUrl ) : System.Web.Mvc.ActionResult

Displays the login page

Private Methods

Method Description
Login ( Daniel15.Web.ViewModels.Account.LoginViewModel model, string returnUrl ) : Task
RedirectToLocal ( string returnUrl ) : System.Web.Mvc.ActionResult

Redirect to the specified URL if it's local to this site. Otherwise, redirect to the index.

Method Details

AccountController() public method

public AccountController ( SignInManager signInManager ) : System.Threading.Tasks
signInManager SignInManager
return System.Threading.Tasks

Login() public method

Displays the login page
public Login ( string returnUrl ) : System.Web.Mvc.ActionResult
returnUrl string URL to return to after logging in
return System.Web.Mvc.ActionResult