Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // your custom app logic goes here:
- (function(){
- var turbo = Turbo({
- site_id: 'APP_ID'
- })
- $('#btn-login').click(function(event){
- event.preventDefault()
- // These values should come from a form tag in an html document:
- var credentials = {
- username: 'mj23',
- password: 'chicagobulls'
- }
- turbo.login(credentials, function(err, data){
- if (err){
- alert('Error:' + err.message)
- return
- }
- alert('User Logged In: ' + JSON.stringify(data))
- })
- })
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement