You are here: RainWorx.FrameWorx.MVC Namespaces > RainWorx.FrameWorx.MVC.Controllers > AccountController Class > LogOn Method (String, String, Boolean, String)

AccountControllerLogOn Method (String, String, Boolean, String)

AuctionWorx 3.5 API
Processes login request

Namespace:  RainWorx.FrameWorx.MVC.Controllers
Assembly:  RainWorx.FrameWorx.MVC (in RainWorx.FrameWorx.MVC.dll) Version: 3.5

Syntax

C#
public Task<ActionResult> LogOn(
	string userName,
	string password,
	bool rememberMe,
	string returnUrl
)

Parameters

userName
Type: SystemString
value to pre-fill with "Username" field
password
Type: SystemString
value to pre-fill the "Password" field
rememberMe
Type: SystemBoolean
value to pre-select the "Remember Me" checkbox
returnUrl
Type: SystemString
Url to redirect to (default site homepage if missing)

Return Value

Type: TaskActionResult
Redirect to login form (login failure), specified url or site home page
Remarks

on successful login the user is redirected to "returnUrl"
See Also

Reference

Copyright © 2002-2022. RainWorx Software. All rights reserved.