mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 17:03:30 -05:00
fix(api-server): fallback to username for cert (#54183)
This commit is contained in:
@@ -469,7 +469,9 @@ function createShowCert(app) {
|
||||
});
|
||||
}
|
||||
|
||||
if (!user.name) {
|
||||
// If the user does not have a name, and have set their name to public,
|
||||
// warn them. Otherwise, fallback to username
|
||||
if (!user.name && user.showName) {
|
||||
return res.json({
|
||||
messages: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user