Code Monkey home page Code Monkey logo

Comments (4)

vasanthv avatar vasanthv commented on May 26, 2024

@rieck-srlabs Thanks for the suggestion. Will look into it. What will happen to the existing users who are already created? Do we need to ask them to create new password?

from webtag.

aadityabhatia avatar aadityabhatia commented on May 26, 2024

Just curious - why not OAuth? To me, creating / managing yet another password is a barrier to entry, but being able to login with my GitHub (just identity, no permissions), for example, would be a really simple thing to do. It would also allow you to offload user/password management to another provider and focus on your core product.

from webtag.

aadityabhatia avatar aadityabhatia commented on May 26, 2024

Disregard my last comment. Just saw issue #4.

from webtag.

rieck-srlabs avatar rieck-srlabs commented on May 26, 2024

What will happen to the existing users who are already created? Do we need to ask them to create new password?

You'll have to migrate them. Asking them to reset their own password would work, but you could also:

  1. Add a passwordVersion enum to the userSchema with v1 (current password hashing) and v2 (more secure setup)
  2. Add code to logIn that handles both v1 and v2, but that migrates users from v1 to v2 on login (you have the plaintext password then). Alternatively, update all other functionality to use v2, so that any password reset will use the improved setup.
  3. Modify the production database accordingly, setting all current users to v1.
  4. Wait for users to login and upgrade their password version.
  5. Remove migration code once there are no longer any v1 users.

from webtag.

Related Issues (8)

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.