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
9ae5ede8
authored
2017-06-29 16:36:12 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add a callout during login to allow end-users to attach things to the
login promise.
1 parent
143960ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/scripts/Auth.js
src/scripts/Auth.js
View file @
9ae5ede
...
...
@@ -251,6 +251,10 @@ define(function(require) {
}
else
{
result
=
$
.
Deferred
().
resolve
().
promise
();
}
var
onLogin
=
self
.
get
(
'onLogin'
);
if
(
onLogin
)
{
result
=
onLogin
(
result
);
}
return
result
;
};
this
.
logout
=
function
()
{
...
...
Please
register
or
sign in
to post a comment