Prettified previous commit

This commit is contained in:
Michael Gielda
2016-03-29 18:00:47 +02:00
parent 3af9b31000
commit dc644e9285

View File

@@ -49,13 +49,13 @@ var mainWindow = null;
var trayIcon = null;
var willAppQuit = false;
app.on('login', function (event, webContents, request, authInfo, callback) {
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
hideEchoBack: true
});
console.log("Replacing default auth behaviour.");
callback(username, password);