Freecodecamp: Tell certificate earners how to add their names

Created on 3 Jun 2016  路  6Comments  路  Source: freeCodeCamp/freeCodeCamp

Campers will often claim a certificate, then not understand why their certificate doesn't have their name on it. This is because we pull their name from GitHub, and if they haven't added a name to their GitHub account, we don't have their name, either.

Agile user story:

  • As a user, if I attempt to claim a certificate and my account doesn't have a name, I should see instructions for how to add it.
  • I should not be able to claim a certificate while my name is blank

Copy for the flash message:

"We need your name so we can put it on your certificate. Add your name to your GitHub account, then go to your settings page and click the "update my portfolio from GitHub" button. Then we can issue your certificate."

help wanted

All 6 comments

Can I take care of this?

@dakshshah96 I didn't respond earlier, but yes - you can take care of this.

I tried hard figuring out how to do this, but couldn't. Would be great if someone else can take up this issue. Sorry about that! 馃槄

I will try this :+1:

@Trion129 any updates?

I started to work on backend projects so forgot to give updates here :sweat_smile: I had added this code to check if, on certificate view, the name is empty it is replaced by a link to github settings

var nameDiv = document.getElementById('name');
if(nameDiv.innerHTML == ""){
  gitLink = document.createElement("a");
  gitLink.innerHTML = "No Name provided on Github";
  gitLink.href = "https://github.com/settings/profile";
  nameDiv.appendChild(gitLink);
}

This is for those that have already claimed the certificates
I am working on api now to prevent the user for claiming

Was this page helpful?
0 / 5 - 0 ratings