feat(client): validate ms learn submissions (#51008)

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Oliver Eyton-Williams
2023-07-26 10:34:58 +02:00
committed by GitHub
parent 7d0fc4d744
commit ae164d7ca8
6 changed files with 144 additions and 43 deletions
@@ -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';