question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the "Get a Hint" info is no use, in "registration-of-new-users" challenges

See original GitHub issue

Affected page

https://www.freecodecamp.org/learn/quality-assurance/advanced-node-and-express/registration-of-new-users

click “Get a Hint” button will to url https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-registration-of-new-users/301561

but hint info is no use, I change it ,but I can not pass challenges

at the end I write is to pass challenges

  app.route('/register')
    .post((req, res, next) => {
    myDataBase.findOne({ username: req.body.username }, function(err, user) {
        const  hash =  bcrypt.hashSync(req.body.password, 12);
        if (err) {
          next(err);
        } else if (user) {
          res.redirect('/');
        } else {
          myDataBase.insertOne({
            username: req.body.username,
            password: hash
          },
            (err, doc) => {
              if (err) {
                res.redirect('/');
              } else {
                // The inserted document is held within
                // the ops property of the doc
                next(null, doc.ops[0]);
              }
            }
          )
        }
      })
    },
      passport.authenticate('local', { failureRedirect: '/' }),
      (req, res, next) => {
        res.redirect('/profile');
      }
    );

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
raisedadeadcommented, Dec 22, 2021

To elaborate what @ieahleen mentioned:

  • Challenge hints are a helping tool. They are normally posted on the forum and updated when needed with help of the community moderators and contributors. These are not a bug per se, in the curriculum or the codebase.
  • We are keeping this tracker to keep the discussions & threads for issues/bugs in codebase only. I think it’s best to post on the forum first when stuck, or if you find something unuseful. Someone from the mod team can confirm the course of action whether it’s a bug and needs reporting here or can be addressed in the discussions on the forum.

Thanks again for your reports and feedback.

1reaction
ieahleencommented, Dec 18, 2021

@miyaliu666 the hints are a forum post, to suggest changes to the guild you can open a thread in the forum

Read more comments on GitHub >

github_iconTop Results From Across the Web

30 tips for signup flows (so that users stop cursing you)
Tell users what they're getting out of registering on your website. Because no one wants to do this. So you have to tell...
Read more >
Register the password reset verification method for a work or ...
Important: This article is intended for users trying to use sign up for self-service password reset. This means that you'll be able to...
Read more >
reCAPTCHA v3 - Google Developers
reCAPTCHA v3 returns a score for each request without user friction. The score is based on interactions with your site and enables you...
Read more >
Did You Get Unemployment Compensation During the ...
Go to “Sign In/Register.” If you did not previously register for an account online, create a new user account. But if you had...
Read more >
Before You Register - Drug & Alcohol Clearinghouse
Authorized users must register to request access to information in the Clearinghouse. Select a user role below to review what you will need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found