diff --git a/app/mobile/src/access/create/useCreate.hook.js b/app/mobile/src/access/create/useCreate.hook.js index 7a78ae73..07108a65 100644 --- a/app/mobile/src/access/create/useCreate.hook.js +++ b/app/mobile/src/access/create/useCreate.hook.js @@ -72,6 +72,13 @@ export function useCreate() { if (debounce.current) { clearTimeout(debounce.current); } + + const restricted = new RegExp('[!@#$%^&*()\ ,.?":{}|<>]', 'i'); + if (restricted.test(state.username)) { + updateState({ usernameValid: false }); + return; + } + debounce.current = setTimeout(async () => { checking.current = true; debounce.current = null; diff --git a/net/container/Dockerfile b/net/container/Dockerfile index 8b84d981..6c5ee5e7 100644 --- a/net/container/Dockerfile +++ b/net/container/Dockerfile @@ -36,7 +36,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$ && wget -P /app https://go.dev/dl/go1.17.5.linux-${ARCHITECTURE}.tar.gz \ && tar -C /usr/local -xzf /app/go1.17.5.linux-${ARCHITECTURE}.tar.gz -RUN git clone https://github.com/balzack/databag.git /app/databag +RUN git clone https://github.com/balzack/databag.git /app/databag RUN yarn config set network-timeout 300000 RUN yarn --cwd /app/databag/net/web install