Fixed a bug that didn''t remove instagram auth properly.

Fixes #158
pull/2/head
Sahat Yalkabov 2014-06-05 23:33:05 -04:00
parent 6a9f339b7f
commit 62d7ea55a5
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ authForm.on('submit', function() {
if (instagramCheckbox.checked && index !== -1) {
passportConfig.splice(index, 1);
index = passportConfig.indexOf('// Sign in with Instagram.');
passportConfig.splice(index, 40);
passportConfig.splice(index, 43);
fs.writeFileSync('config/passport.js', passportConfig.join(os.EOL));
index = loginTemplate.indexOf(" a.btn.btn-block.btn-instagram.btn-social(href='/auth/instagram')");