Table of Contents

Class SecurityHandler

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll
public sealed class SecurityHandler
Inheritance
SecurityHandler
Inherited Members

Constructors

SecurityHandler(int)

Initializes new instance of the class and starts extranet procedure.
public SecurityHandler(int pageId)

Parameters

pageId int
The Page ID.

SecurityHandler(int, string)

Initializes new instance of the class and starts extranet procedure.
public SecurityHandler(int pageId, string permissionTemplate)

Parameters

pageId int
The Page ID.
permissionTemplate string
The login template.

Methods

ForgotUserPassword(User, bool, string, string)

public static bool ForgotUserPassword(User user, bool generateNewPassword, string newPassword, string emailTemplateFolder)

Parameters

user User
generateNewPassword bool
newPassword string
emailTemplateFolder string

Returns

bool

IsCurrentUserAllowed(Page)

Determines whether the current user have access to the specified page.
public static bool IsCurrentUserAllowed(Page page)

Parameters

page Page
The Page.

Returns

bool
True if current user have access to the specified Page; otherwise, False. False if Page is null. False if user is not logged in and Page has permissions set. True if user is not logged in and Page has no permissions set.

IsPageProtect(Page)

Determines whether the page is protected.
public bool IsPageProtect(Page page)

Parameters

page Page
The Page.

Returns

bool
True, if page is protected, otherwise, False.

IsPageProtect(Page, string)

Determines whether the page is protected.
public static bool IsPageProtect(Page page, string pagePassword)

Parameters

page Page
The Page.
pagePassword string
The page password.

Returns

bool
True, if page is protected, otherwise, False.

LogOnPrompt()

Runs prompt extranet login.
public string LogOnPrompt()

Returns

string
The template or text of the prompt.

SendForgottenPasswordEmail(string, string, string, bool, string, string, Dictionary<string, string>)

public static bool SendForgottenPasswordEmail(string userEmail, string username, string password, bool isNewPassword, string recoveryUrl, string emailTemplateFolder, Dictionary<string, string> emailTags)

Parameters

userEmail string
username string
password string
isNewPassword bool
recoveryUrl string
emailTemplateFolder string
emailTags Dictionary<string, string>

Returns

bool

SetExtranetLogOnErrorTags()

Sets the errors tag values in the template for log on.
public static void SetExtranetLogOnErrorTags()

SetExtranetLogOnTags(Template, int)

Sets the tag values in the template for log on.
public static void SetExtranetLogOnTags(Template logOnTemplate, int pageId)

Parameters

logOnTemplate Template
The Template.
pageId int
The page ID.
To top