loginForm

Main login component Vue object Manages the login form

surveyRendered

Reset the analytics data back to current form, after the registration form validation reset it after form load.

Parameters

surveyRendered

When the survey rendered event is dispatched, propagate it back to children, namely login form

Parameters

loginUser

Function gets called after the validation plugin assertained form's validity

Returns Boolean Always returns false to prevent the standard HTML-based form submission

sendUsernamePw

Function gets called after the validation has passed by the plugin

Returns Boolean Always returns false to prevent default form submission

##

else { if(responseMsg.match(successMsg)){ responseMsg = responseMsg.replace(successMsg, 'Your username and password has been emailed to'); } this.setMessage(responseMsg); }*

loginRegister

Register form component

loginSurvey

getSurvey

get the survey via API

Parameters

parseSurvey

Gets API data, parses it and puts it into a uniform object

Parameters

Returns [type] [description]

orderQuestions

orders questions by rank of each question for ease of rendering and tracking

Parameters

Returns array an array of ordered questions

processQuestion

goes through the question and assigns it's parameter

Parameters

Returns object [description]

submitSurvey

submits the survey to the API, the response is sent to submitSurveyCallback()

submitSurveyCallback

process response of the Survey submission

Parameters

ready

Login main app

setSocialMediaAnalyticsData

Adds click triggers onto social media icons and writes data into a cookie The callback to the login process will write data into a member cookie Also adds in data-link-type attributes to the link on the form

loginTest

Sends a request to Luminate API to see if the user is logged in.

Parameters

loginUserCallback

Processes the Luminate API response

Parameters

getUserInfo

Calls a global function that sets userCookie and login type and submits info to analytics

Parameters

setValuesFromCookie

Sets app's data from the cookie, which was set by analytics scripts.

Parameters

loginStore

Stores the logged in state for the login app