mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
restrict characters allowed in login
This commit is contained in:
parent
520fc2cfc5
commit
ea2fdec293
@ -72,6 +72,13 @@ export function useCreate() {
|
|||||||
if (debounce.current) {
|
if (debounce.current) {
|
||||||
clearTimeout(debounce.current);
|
clearTimeout(debounce.current);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const restricted = new RegExp('[!@#$%^&*()\ ,.?":{}|<>]', 'i');
|
||||||
|
if (restricted.test(state.username)) {
|
||||||
|
updateState({ usernameValid: false });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
debounce.current = setTimeout(async () => {
|
debounce.current = setTimeout(async () => {
|
||||||
checking.current = true;
|
checking.current = true;
|
||||||
debounce.current = null;
|
debounce.current = null;
|
||||||
|
@ -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 \
|
&& 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
|
&& 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 config set network-timeout 300000
|
||||||
RUN yarn --cwd /app/databag/net/web install
|
RUN yarn --cwd /app/databag/net/web install
|
||||||
|
Loading…
Reference in New Issue
Block a user