loumadev / EdupageAPI

Simple node.js package to manage your EduPage account.
GNU General Public License v3.0
24 stars 2 forks source link

Incorrect username #20

Open checkm4te8 opened 1 year ago

checkm4te8 commented 1 year ago

Hi, I'm trying to login to Edupage using edupage API, and it works, on my machine.

        var user = await edupage.login(process.env.USER, decryptedpass, {edupage: process.env.SCHOOL}).catch((err) => {
            console.log('-----EDUPAGE LOGIN FAILED-----');
            console.log(err)
         });

        if (typeof user == 'object') {
            sentembed3.delete();
            console.log('-----EDUPAGE LOGIN OK-----');
            await origmsg.channel.send({
                embeds: [embed4]
            });
            isInitialized = true;

            return edupage;
        } else { 
            sentembed3.delete();
            emergency.emergency(origmsg, bot);
            await origmsg.channel.send({
                embeds: [embed6]
            });
            return false;
        }

It logs in just fine on my PC, but on my server running Linux, it is unable to, and it says: Failed to login: Incorrect username. (If you are sure that the username is correct, try providing the 'edupage' option)

Any ideas? Thanks.