couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject [12/50] [abbrv] couchdb commit: updated refs/heads/1.6.x to d2ac597
Date Tue, 01 Apr 2014 17:41:54 GMT
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/1.6.x
Commit: f2153c0f99050775e3ee1ddb94d9e68848010361
Parents: f0cdb70
Author: Garren Smith <garren.smith@gmail.com>
Authored: Fri Mar 21 11:31:15 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
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();


Mime
View raw message