Much better support for frontend field validation

This commit is contained in:
garronej
2021-10-25 21:26:08 +02:00
parent 92fb3b7529
commit 3aad681538
11 changed files with 780 additions and 204 deletions

View File

@ -3,7 +3,7 @@ import { Template } from "./Template";
import type { KcProps } from "./KcProps";
import type { KcContextBase } from "../getKcContext/KcContextBase";
import { useKcMessage } from "../i18n/useKcMessage";
import { appendHead } from "../tools/appendHead";
import { headInsert } from "../tools/headInsert";
import { join as pathJoin } from "path";
import { useCssAndCx } from "tss-react";
@ -17,7 +17,7 @@ export const LoginOtp = memo(({ kcContext, ...props }: { kcContext: KcContextBas
useEffect(() => {
let isCleanedUp = false;
appendHead({
headInsert({
"type": "javascript",
"src": pathJoin(kcContext.url.resourcesCommonPath, "node_modules/jquery/dist/jquery.min.js"),
}).then(() => {