Improved code style.

This commit is contained in:
Martin Edenhofer 2013-08-27 22:31:24 +02:00
parent 0683c0b1bd
commit 568add6fcd

View file

@ -3,10 +3,10 @@ class App.Auth
@login: (params) -> @login: (params) ->
App.Log.notice 'Auth', 'login', params App.Log.notice 'Auth', 'login', params
App.Ajax.request( App.Ajax.request(
id: 'login', id: 'login'
type: 'POST', type: 'POST'
url: App.Config.get('api_path') + '/signin', url: App.Config.get('api_path') + '/signin'
data: JSON.stringify(params.data), data: JSON.stringify(params.data)
success: (data, status, xhr) => success: (data, status, xhr) =>
# set login (config, session, ...) # set login (config, session, ...)