var _ = require('lodash');

module.exports = {
    fillLogin: function(form, data) {
        var formData = _.merge(form, data);
        return formData;
    },

    headers: function() {
        return {
            'User-Agent': 'Chrome/' + process.versions['chrome'] + ' Electron/' + process.versions['electron']
        };
    },

    checkUnauthorized: function(page) {

    }
};

var _ = require('lodash');

module.exports = {
    fillLogin: function(form, data) {
        var formData = _.merge(form, data);
        return formData;
    },

    headers: function() {
        return {
            'User-Agent': 'Chrome/' + process.versions['chrome'] + ' Electron/' + process.versions['electron']
        };
    },

    checkUnauthorized: function(page) {
        return /Du bist nicht eingeloggt/.test(page);
    }
};

Check for actual not logged in message
Check for actual not logged in message
