Search:
tqExpert Help
print
|
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

login

You use the login tqTag when the Website or part of the Website is limited to registered users who need to log in.

login - Syntax

<tqtag name="loginBoxtype="loginloginAuthMethod="cookie | sessionalternativeTag="loginBoxAlternativealternativeCondition="isLoggedIn | isNotLoggedIn" >
...
</tqtag>

login - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be login
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
title Alpha Numeric + S - The title of the tqtag. This title will be presented only at the back-end system.  no spaces/commas/single quote/double quotes allowed
alternativeTag Text + S + Specify a case declared within the alternative tqTag.
alternativeCondition Text + S + (optional, if the condition is specified within the alternative tqTag) Indicate a condition for the case that you are specifying. Use one of the values described for this field under alternative, for example, isLoggedIn or isNotLoggedIn.
cookieExpirationTime  Number - S   The number of minutes to keep the cookie valid (NOT SUPPORTED YET)
htmlObjectID
htmlObjectName
loginAuthMethod  Text + S + Tells the system the login method to use:
1. cookie - the system will create a cookie on the end-user computer that will be active for cookieExpirationTime (NOT SUPPORTED YET)
2. session - the system will create a session and will keep it open till the end-user closes the browser or idle time reaches 30 minutes.
 

login - Local Variables

Name Type Size Description
forgotPassLink
userLoginForm

login - Examples

Example 1 - basic login example
<tqtag name="loginBoxtype="loginloginAuthMethod="cookie" >
    <input type="hidden" name="authLoginSuccess" value="urlToGoWhereLoginSuccess" />
    <input type="hidden" name="authLoginFail" value="urtlToGoWhereLoginFail" />
    <div>
        User Name: <input name="tqUserName" type="text" />
        Password: <input name="tqUserPass" type="password" />
    </div>
    <div><button type="submit">login</button></div>
</tqtag>


Example 2 - login example with alternative to loggedin users
<tqtag name="loginBoxAlternativetype="alternative" >
    You are already logged in
</tqtag>

<tqtag name="loginBoxtype="loginloginAuthMethod="cookiealternativeTag="loginBoxAlternativealternativeCondition="isLoggedIn" >
    <input type="hidden" name="authLoginSuccess" value="urlToGoWhereLoginSuccess" />
    <input type="hidden" name="authLoginFail" value="urtlToGoWhereLoginFail" />
    <div>
        User Name: <input name="tqUserName" type="text" />
        Password: <input name="tqUserPass" type="password" />
    </div>
    <div><button type="submit">login</button></div>
</tqtag>

login - tqOptions

With the login tqtag, you can use the following tqoptions: if, tail.

Related Topics

User Notes

  Add Note

Topic: login