Repository: couchdb
Updated Branches:
  refs/heads/master f0cdb701d -> f2153c0f9


Fauxton: Fire authenticated event when user is authenticated


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f2153c0f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f2153c0f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f2153c0f

Branch: refs/heads/master
Commit: f2153c0f99050775e3ee1ddb94d9e68848010361
Parents: f0cdb70
Author: Garren Smith <[email protected]>
Authored: Fri Mar 21 11:31:15 2014 +0200
Committer: Garren Smith <[email protected]>
Committed: Fri Mar 21 11:31:15 2014 +0200

----------------------------------------------------------------------
 src/fauxton/app/addons/auth/base.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/f2153c0f/src/fauxton/app/addons/auth/base.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/auth/base.js 
b/src/fauxton/app/addons/auth/base.js
index 3354f53..c7bbb04 100644
--- a/src/fauxton/app/addons/auth/base.js
+++ b/src/fauxton/app/addons/auth/base.js
@@ -39,8 +39,10 @@ function(app, FauxtonAPI, Auth) {
       var deferred = $.Deferred();
 
       if (session.isAdminParty()) {
+        session.trigger("authenticated");
         deferred.resolve();
       } else if(session.matchesRoles(roles)) {
+        session.trigger("authenticated");
         deferred.resolve();
       } else {
         deferred.reject();

Reply via email to