Revert existing auth event

This commit is contained in:
Yuya Ochiai
2016-04-19 20:44:07 +09:00
parent c3761637d2
commit f8678fbec3
2 changed files with 0 additions and 13 deletions

View File

@@ -79,18 +79,6 @@ function shouldShowTrayIcon() {
return false;
}
app.on('login', function(event, webContents, request, authInfo, callback) {
event.preventDefault();
var readlineSync = require('readline-sync');
console.log("HTTP basic auth requiring login, please provide login data.");
var username = readlineSync.question('Username: ');
var password = readlineSync.question('Password: ', {
hideEchoBack: true
});
console.log("Replacing default auth behaviour.");
callback(username, password);
});
// Quit when all windows are closed.
app.on('window-all-closed', function() {
// On OS X it is common for applications and their menu bar

View File

@@ -15,7 +15,6 @@
"react": "^15.0.1",
"react-bootstrap": "^0.28.5",
"react-dom": "^15.0.1",
"readline-sync": "^1.4.1",
"yargs": "^3.31.0"
}
}