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:
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."
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