Skip to content

Commit

Permalink
Merge pull request #5848 from FreeCodeCamp/fix/hiding-text
Browse files Browse the repository at this point in the history
Update certificate error messages
  • Loading branch information
Berkeley Martinez committed Jan 11, 2016
2 parents f8e06fb + 9b4b6a2 commit 05d34c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/boot/user.js
Expand Up @@ -262,33 +262,33 @@ module.exports = function(app) {
(user) => {
if (!user) {
req.flash('errors', {
msg: `404: We couldn't find the user ${username}`
msg: `404: We couldn't find the user with the username ${username}`
});
return res.redirect('/');
}
if (!user.isGithubCool) {
req.flash('errors', {
msg: dedent`
This user needs to link GitHub with their account
in order to display this certificate to the public.
in order for others to be able to view their certificate.
`
});
return res.redirect('back');
}
if (user.isLocked) {
req.flash('errors', {
msg: dedent`
${username} has chosen to hide their work from the public.
They need to unhide their work in order for this certificate to
be verifiable.
${username} has chosen to make their profile
private. They will need to make their profile public
in order for others to be able to view their certificate.
`
});
return res.redirect('back');
}
if (!user.isHonest) {
req.flash('errors', {
msg: dedent`
${username} has not agreed to our Academic Honesty Pledge yet.
${username} has not yet agreed to our Academic Honesty Pledge.
`
});
return res.redirect('back');
Expand Down

0 comments on commit 05d34c8

Please sign in to comment.