GithubHelp home page GithubHelp logo

Login not working about ackee HOT 7 CLOSED

electerious avatar electerious commented on June 10, 2024
Login not working

from ackee.

Comments (7)

electerious avatar electerious commented on June 10, 2024 2

Ready to test on develop. Could somebody give it a try to confirm that it's working? Also available using the develop docker tag.

from ackee.

AlexisJC avatar AlexisJC commented on June 10, 2024 1

Hi ! i've a trouble with login me too.
Problem is simple in my case. I found process.env.USERNAME is not equal to USERNAME .env parameter but equal to my windows session Username ! So, Maybe Username is reserved process.env parameter overwritten by node.

Simple solution is to use another entry like ACKEE_USERNAME and ACKEE_PASSWORD. I think it's better because USERNAME and PASSWORD were ambiguous, I first thought it was the identifiers for my mongodb instance. (My fault I did not read the doc correctly)

from ackee.

electerious avatar electerious commented on June 10, 2024 1

The dotenv documentation explains why this is happening:

We will never modify any environment variables that have already been set. In particular, if there is a variable in your .env file which collides with one that already exists in your environment, then that variable will be skipped. This behavior allows you to override all .env configurations with a machine-specific environment, although it is not recommended.

This somehow makes sense, but it's annoying when it's not you overwriting the variables.

I will add the prefixes in the next update which should be ready in a few days. Thanks for letting me know!

from ackee.

hieunc229 avatar hieunc229 commented on June 10, 2024 1

Thanks for the update. I tested the develop branch and it works great (not using Docker)

from ackee.

electerious avatar electerious commented on June 10, 2024 1

v1.1.0 is now live and includes the ACKEE_ prefix for all variables.

from ackee.

hieunc229 avatar hieunc229 commented on June 10, 2024

I tried to log process.env.USERNAME, turn out it was override as root from somewhere within the app.

from ackee.

electerious avatar electerious commented on June 10, 2024

This is interesting. Using ACKEE_USERNAME and ACKEE_PASSWORD could be a solution. Maybe prefixing all environment variables with ACKEE_ could help to avoid collisions.

from ackee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.