mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(client): validate ms learn submissions (#51008)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7d0fc4d744
commit
ae164d7ca8
@@ -64,7 +64,8 @@ export class SolutionForm extends Component<SolutionFormProps> {
|
||||
},
|
||||
required: ['solution'],
|
||||
isEditorLinkAllowed: false,
|
||||
isLocalLinkAllowed: false
|
||||
isLocalLinkAllowed: false,
|
||||
isMicrosoftLearnLink: false
|
||||
};
|
||||
|
||||
let formFields = solutionField;
|
||||
@@ -109,6 +110,7 @@ export class SolutionForm extends Component<SolutionFormProps> {
|
||||
|
||||
case challengeTypes.msTrophyUrl:
|
||||
formFields = msTrophyField;
|
||||
options.isMicrosoftLearnLink = true;
|
||||
solutionLink =
|
||||
solutionLink +
|
||||
'https://learn.microsoft.com/en-us/training/achievements/learn.wwl.get-started-c-sharp-part-1.trophy?username=you';
|
||||
|
||||
Reference in New Issue
Block a user