Giter Site home page Giter Site logo

Ability to change user password about anchr HOT 8 CLOSED

muety avatar muety commented on June 26, 2024
Ability to change user password

from anchr.

Comments (8)

alexandrosyiangou avatar alexandrosyiangou commented on June 26, 2024

Hey there! I can handle this 🙂

from anchr.

muety avatar muety commented on June 26, 2024

Sure, give it at try! 🙂
Remember that you would need to change both frontend and backend. The latter is just a few lines of code. For the frontend, you would probably have to introduce a new kind of "settings" page, which can be accessed through a new Settings button to the left of the Logout button at the top right.
Other suggestions on where to place the password change in the UI are welcome, of course. 😉

from anchr.

alexandrosyiangou avatar alexandrosyiangou commented on June 26, 2024

I got 2 issues..
When trying to setup, I run source env.sh I get the error bash: export: `#': not a valid identifier

Then when trying to continue installation, everything is successful, but I cant connect to the db and the app doesnt run..

Can I get some help here? 🙂

from anchr.

muety avatar muety commented on June 26, 2024

Did you copy the .env.example to .env and add in your DB credentials etc.? If so, try to just remove the one exemplary comment in .env.

Concerning the database: do you know the exact reason why it can't connect? And can you give some details about your database? Did you set up a Mongo locally? Are you using Docker? Or a hosted online service? Can you connect to your database from the command-line or with a GUI tool like RoboMongo ?

from anchr.

alexandrosyiangou avatar alexandrosyiangou commented on June 26, 2024

Yeah man, I have followed the instructions on README, so I have copied the .env.example and set the default values on my .env.

The error im getting for the db is this

Error: unable to connect to database 
  at NativeConnection.<anonymous> (/home/administrator/Documents/Alexandros/Projects/anchr/app.js:10:9)     
  at NativeConnection.emit (events.js:182:13)     
  at NativeConnection.Connection.error (/home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongoose/lib/connection.js:425:8)     
  at /home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongoose/lib/connection.js:452:14     
  at /home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:58:21     
  at /home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongoose/node_modules/mongodb/lib/db.js:224:14     
  at Server.<anonymous> (/home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongoose/node_modules/mongodb/lib/server.js:234:9)     
  at Object.onceWrapper (events.js:273:13)     
  at Server.emit (events.js:182:13)     
  at Pool.<anonymous> (/home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongodb-core/lib/topologies/server.js:269:68)     
  at Object.onceWrapper (events.js:273:13)     
  at Pool.emit (events.js:182:13)     
  at Connection.<anonymous> (/home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongodb-core/lib/connection/pool.js:81:12)     
  at Object.onceWrapper (events.js:273:13)     
  at Connection.emit (events.js:182:13)     
  at Socket.<anonymous> (/home/administrator/Documents/Alexandros/Projects/anchr/node_modules/mongodb-core/lib/connection/connection.js:124:49)

from anchr.

muety avatar muety commented on June 26, 2024

Maybe try setting the env vars manually, instead of using the bash script, i.e. manually run export ANCHR_DB_URL=..., export ANCHR_SECRET=... and so on?

from anchr.

alexandrosyiangou avatar alexandrosyiangou commented on June 26, 2024

Oh I also dont have mongodb installed locally. Im running on ubuntu machine. Do I need the mongodb cli tools before continuing exporting manually?

from anchr.

muety avatar muety commented on June 26, 2024

No, you don't necessarily need the mongo cli, unless you want to manually check the connection or something.

from anchr.

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.