How to synchronize current authentication status and login to the bookings on your web page.
» Install a Book Now button or link on your website
Add the following code allows you to maintain login state between your web page and the arms-length online bookings.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
<html> <body> <div class="blueskybooking-authentication-synchronizing">One moment please...</div> <div class="blueskybooking-authentication-state-active">Active</div> <div class="blueskybooking-authentication-state-inactive">Inactive</div> <div class="blueskybooking-authentication-state-description" value="%CONTACT_ID% | %NAME% | %FIRST% %LAST%"></div> <span class="blueskybooking-authentication-state-inactive"> <input type="button" class="blueskybooking-authentication-login" value="Login" /> | </span> <span class="blueskybooking-authentication-state-active"> <input type="button" class="blueskybooking-authentication-logout" value="Logout" /> | <input type="button" class="blueskybooking-widget-dashboard" value="Dashboard" /> | </span> <input type="radio" id="radLoginMethodContact_ID" name="radLoginMethod" class="blueskybooking-authentication-method blueskybooking-authentication-method-contact_id" value="1" checked="checked" /> <label for="radLoginMethodContact_ID">Customer #</label><br /> <input type="radio" id="radLoginMethodEmail" name="radLoginMethod" class="blueskybooking-authentication-method blueskybooking-authentication-method-email" value="2" /> <label for="radLoginMethodEmail">Email</label><br /> <input type="radio" id="radLoginMethodAgent" name="radLoginMethod" class="blueskybooking-authentication-method blueskybooking-authentication-method-agent" value="3" /> <label for="radLoginMethodAgent">Agent</label><br /> <div class="blueskybooking-authentication-option blueskybooking-authentication-option-contact_id">Contact_ID</div> <div class="blueskybooking-authentication-option blueskybooking-authentication-option-email">Email</div> <div class="blueskybooking-authentication-option blueskybooking-authentication-option-agent">Agent</div> <input type="text" class="blueskybooking-authentication-contact_id" /> Customer #<br /> <input type="text" class="blueskybooking-authentication-email" /> Email<br /> <input type="text" class="blueskybooking-authentication-agent-service" /> Agent Service<br /> <input type="text" class="blueskybooking-authentication-agent-member" /> Agent Member<br /> <input type="password" class="blueskybooking-authentication-password" /> Password<br /> <input id="chkAutomatic" type="checkbox" class="blueskybooking-authentication-automatic" checked="checked"/> <label for="chkAutomatic">Remember Me</label> </body> </html> |
Technical
This include supporting documentation on the login widget.
Synchronization
This can be used to notify users when the authentication process in in process.
Class:
blueskybooking-authentication-synchronizing
State: Active
A section or sections which are displayed when the login state is authenticated and active.
Class:
blueskybooking-authentication-state-active
State: Inactive
A section or sections which are displayed when the login state is inactive.
Class:
blueskybooking-authentication-state-inactive
State: Description
A section which customer and/or agent details can be passed through.
Class:
blueskybooking-authentication-state-descriptionParameters:
%CONTACT_ID%
%NAME%
%FIRST% %LAST%
Login
The login button or link which executes the authentication.
Class:
blueskybooking-authentication-login
Logout
The login button or link which signs out of the booking system.
Class:
blueskybooking-authentication-logout
Dashboard
The login button or link which opens the customer dashboard.
Class:
blueskybooking-widget-dashboard
Class:
blueskybooking-authentication-methodOptions:
blueskybooking-authentication-method-contact_id
blueskybooking-authentication-method-email
blueskybooking-authentication-method-agentSyntax:
Method={Contact|Contact_ID|Email|Agent}
Login Option
The sections which are displayed, depending on which Login Method is currently selected.
Class:
blueskybooking-authentication-optionOptions:
blueskybooking-authentication-option-contact_id
blueskybooking-authentication-option-email
blueskybooking-authentication-option-agent
Field: Customer #
Class:
blueskybooking-authentication-contact_idSyntax:
Contact_ID={Contact_ID}
Field: Email
Class:
blueskybooking-authentication-emailSyntax:
Email={address}
Field: Agent Service
Class:
blueskybooking-authentication-agent-serviceSyntax:
Service={service}
Field: Agent Member
Class:
blueskybooking-authentication-agent-memberSyntax:
Member={member}
Field: Password
Class:
blueskybooking-authentication-passwordSyntax:
Password={password}
Field: Automatic
Automatic login on next session, ie. Remember me.
Class:
blueskybooking-authentication-automaticSyntax:
Automatic={0, 1}