Permalink
Browse files

add skip_auth client parameter (used for debuging)

  • Loading branch information...
kerphi committed Dec 2, 2012
1 parent 65d4152 commit 609266b398a95da86f2a55fba8ba64ea4a0ef3f3
Showing with 8 additions and 3 deletions.
  1. +4 −2 client/jquery.phpfreechat.init.js
  2. +4 −1 client/jquery.phpfreechat.js
@@ -59,8 +59,10 @@ var phpFreeChat = (function (pfc, $, window, undefined) {
// show donation popup if not skiped
pfc.showDonationPopup(function () {
- // then try to authenticate
- pfc.login();
+ if (!pfc.options.skip_auth) {
+ // then try to authenticate
+ pfc.login();
+ }
});
// when logged in
@@ -47,7 +47,10 @@ var phpFreeChat = (function (pfc, $, window, undefined) {
tolerated_network_errors: 5,
// flag used to force skiping intro message about donation
- skip_intro: false
+ skip_intro: false,
+
+ // skip login step ? (if true, chat will not be usable)
+ skip_auth: false
};
function Plugin(element, options) {

0 comments on commit 609266b

Please sign in to comment.