remove fake payload

This commit is contained in:
Konstantin Haase 2012-09-18 20:03:49 +02:00
parent 9ce2f72349
commit 5f8c5f5798
3 changed files with 4 additions and 9 deletions

View File

@ -22,7 +22,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-api.git
revision: 3a64c87a7f76021dfd8021c3e63c13dae0371cfd
revision: 1e903129a31ab7785e17562740d0bfb69486e2f3
branch: sf-use-services
specs:
travis-api (0.0.1)

View File

@ -20,10 +20,6 @@ require 'travis/auth'
Travis.reopen
App: Em.Application.extend
USER_PAYLOAD:
user: { id: 1, login: 'svenfuchs', name: 'Sven Fuchs', email: 'me@svenfuchs.com', token: '1234567890', gravatar: '402602a60e500e85f2f5dc1ff3648ecb', locale: 'en', repo_count: 2, synced_at: '2012-09-15T20:53:14Z' }
accounts: [{ login: 'travis-ci', name: 'Travis CI', type: 'org', repoCounts: 1 }]
init: ->
@_super()
@connect()
@ -38,9 +34,8 @@ Travis.reopen
#@setCurrentUser(JSON.parse($.cookie('user')))
signIn: ->
user = Travis.Auth.signIn()
# console.log(user)
#@setCurrentUser(@USER_PAYLOAD)
Travis.Auth.signIn()
# TODO: this has to mov, no?
@render.apply(this, @get('returnTo') || ['home', 'index'])
signOut: ->

File diff suppressed because one or more lines are too long