Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
frontend-auth
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2c1133be
authored
2017-06-29 16:36:39 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
No longer send the sessionId in the api calls; the server should fetch
it via the cookie instead.
1 parent
9ae5ede8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/scripts/Auth.js
src/scripts/Auth.js
View file @
2c1133b
...
...
@@ -206,7 +206,7 @@ define(function(require) {
}
function
api
(
apiName
,
data
)
{
var
apiHandler
=
globalOptions
.
api
||
function
(
apiName
,
data
)
{};
return
apiHandler
(
apiName
,
data
,
{
sessionId
:
self
.
get
(
'sessionId'
)
}).
always
(
function
()
{
return
apiHandler
(
apiName
,
data
,
{}).
always
(
function
()
{
self
.
unset
(
'errorMessage'
);
}).
done
(
applyLoginResults
).
fail
(
function
(
xhr
)
{
if
(
xhr
.
responseJSON
&&
xhr
.
responseJSON
.
errorMessage
)
{
...
...
Please
register
or
sign in
to post a comment