Skip to content

Commit

Permalink
Merge pull request #267 from romaintb/submitlogin_nghttp_options
Browse files Browse the repository at this point in the history
submitLogin can have more arguments, to pass to $http.post
  • Loading branch information
booleanbetrayal committed Mar 14, 2016
2 parents 7639974 + cfbb638 commit 480a8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ng-token-auth.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ angular.module('ng-token-auth', ['ipCookie'])


# capture input from user, authenticate serverside
submitLogin: (params, opts={}) ->
submitLogin: (params, opts={}, httpopts={}) ->
@initDfd()
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailSignInPath, params)
$http.post(@apiUrl(opts.config) + @getConfig(opts.config).emailSignInPath, params, httpopts)
.success((resp) =>
@setConfigName(opts.config)
authData = @getConfig(opts.config).handleLoginResponse(resp, @)
Expand Down

0 comments on commit 480a8bf

Please sign in to comment.