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
765b6b09
authored
2016-08-10 11:48:04 -0500
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Service must call "fail" not "error"
Refs: #7564
1 parent
8b4d562b
Hide 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 @
765b6b0
...
...
@@ -203,7 +203,7 @@ define(function(require) {
var
apiHandler
=
globalOptions
.
api
||
function
(
apiName
,
data
)
{};
return
apiHandler
(
apiName
,
data
,
{
sessionId
:
self
.
get
(
'sessionId'
)}).
always
(
function
()
{
self
.
unset
(
'errorMessage'
);
}).
done
(
applyLoginResults
).
error
(
function
(
xhr
)
{
}).
done
(
applyLoginResults
).
fail
(
function
(
xhr
)
{
if
(
xhr
.
responseJSON
&&
xhr
.
responseJSON
.
errorMessage
)
{
self
.
set
(
'errorMessage'
,
xhr
.
responseJSON
.
errorMessage
);
}
...
...
Please
register
or
sign in
to post a comment