From 81573cd2c7d7d7a5f7237c4283ba97a55300aa4d Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 5 Feb 2020 11:35:13 +0200 Subject: Implement CSP --- frontend/public/index.html | 3 +++ frontend/src/Home.js | 3 +++ frontend/src/Login.js | 2 +- frontend/src/Register.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'frontend') diff --git a/frontend/public/index.html b/frontend/public/index.html index aa069f2..cc94d49 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -5,6 +5,9 @@ + {
Hello {user.username}! +
+ Placeholder +
); }); diff --git a/frontend/src/Login.js b/frontend/src/Login.js index 1a1cb2b..d17a5ab 100644 --- a/frontend/src/Login.js +++ b/frontend/src/Login.js @@ -6,7 +6,7 @@ import axios from './axios'; import userState from './UserState'; const Login = () => { - const { register, handleSubmit, watch, errors } = useForm(); + const { register, handleSubmit } = useForm(); const [ loginError, setLoginError ] = useState(null); const onSubmit = async data => { diff --git a/frontend/src/Register.js b/frontend/src/Register.js index e49b4ea..f4a6ec3 100644 --- a/frontend/src/Register.js +++ b/frontend/src/Register.js @@ -6,7 +6,7 @@ import axios from './axios'; import userState from './UserState'; const Register = () => { - const { register, handleSubmit, watch, errors } = useForm(); + const { register, handleSubmit } = useForm(); const [ loginError, setLoginError ] = useState(null); const onSubmit = async data => { -- cgit v1.3