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
SecurityHandler(int, string)
Initializes new instance of the class and starts extranet procedure.
public SecurityHandler(int pageId, string permissionTemplate)
Parameters
Methods
ForgotUserPassword(User, bool, string, string)
public static bool ForgotUserPassword(User user, bool generateNewPassword, string newPassword, string emailTemplateFolder)
Parameters
Returns
IsCurrentUserAllowed(Page)
Determines whether the current user have access to the specified page.
public static bool IsCurrentUserAllowed(Page page)
Parameters
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
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
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
stringusername
stringpassword
stringisNewPassword
boolrecoveryUrl
stringemailTemplateFolder
stringemailTags
Dictionary<string, string>
Returns
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)