|
|
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Tries to perform a forms-based login.
If logon fails, a SecurityException error is thrown.
Namespace: Smartsite.Runtime.Modules
If logon fails, a SecurityException error is thrown.
Assembly: Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)
Syntax
| C# | |
|---|---|
[] public static void TryLogin( context, string userName, string password, bool isHashed, bool persistentCookie ) | |
| Visual Basic (Declaration) | |
|---|---|
<> _ Public Shared Sub TryLogin ( _ context As , _ userName As , _ password As , _ isHashed As , _ persistentCookie As _ ) | |
Parameters
- context
- IRenderContext
The context.
- userName
- String
Name of the user.
- password
- String
The password.
- isHashed
- Boolean
if set to true [is hashed].
- persistentCookie
- Boolean
if set to true, a persistent cookie will be written.
See Also
LoginModule Class
Smartsite.Runtime.Modules Namespace