couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [38/50] [abbrv] fauxton commit: updated refs/heads/import-master to b32c617
Date Tue, 01 Apr 2014 09:14:54 GMT
Fauxton: Fire authenticated event when user is authenticated


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

Branch: refs/heads/import-master
Commit: 4cca73027d156954344423f390f24fe1c1ac6c46
Parents: 2478107
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

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


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4cca7302/app/addons/auth/base.js
----------------------------------------------------------------------
diff --git a/app/addons/auth/base.js b/app/addons/auth/base.js
index 3354f53..c7bbb04 100644
--- a/app/addons/auth/base.js
+++ b/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