Only expose ssl feature to our IP under chrome

To allow us to see and test the old method
This commit is contained in:
Remy Sharp 2014-02-27 10:10:22 +00:00
parent f53fc229fc
commit b4b538ea42

View File

@ -85,7 +85,8 @@ var flags = {
// use SSL for sign in
sslLogin: function (req) {
return ['127.0.0.1', '81.174.141.101', '86.10.164.12'].indexOf(req.ip) !== -1;
var chrome = req.headers['user-agent'].toLowerCase().indexOf('chrome') !== -1;
return chrome && ['127.0.0.1', '81.174.141.101', '86.10.164.12'].indexOf(req.ip) !== -1;
},
};