Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make testmode default to false.

It's less confusing this way, probably will save someone
10 minutes of frustration.
  • Loading branch information...
commit 4aaa73aa240445a8175e5d181225efa3706dd2ed 1 parent 3879612
@danielbeardsley danielbeardsley authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 dozuki_sso.php
View
5 dozuki_sso.php
@@ -11,8 +11,9 @@ public static function authenticate() {
't' => time()
));
+ $testMode = self::$forceTestMode;
$destinationURL = 'https://' . self::$dozukiSite .
- '/Guide/User/remote_login' . (self::$testMode ? '/test' : '') . '?';
+ '/Guide/User/remote_login' . ($testMode ? '/test' : '') . '?';
$query = http_build_query($params);
$hash = sha1($query . self::$secret);
@@ -27,7 +28,7 @@ public static function authenticate() {
// ========================================================
protected static $dozukiSite = 'yoursitename.dozuki.com';
protected static $secret = 'abcdefghijklmnopqrstuvwxyz01234567890';
- protected static $testMode = true;
+ protected static $forceTestMode = false;
/**
* Change this function to return the specified info for the currently
Please sign in to comment.
Something went wrong with that request. Please try again.