From a98f9c698b838d2b13af05f53c6e6ef8410f9392 Mon Sep 17 00:00:00 2001 From: Ulrik Kristensen Date: Mon, 3 Mar 2025 13:20:08 +0100 Subject: [PATCH 1/2] fixes randomState to have 8 chars instead of 6 --- src/views/Authorization/LoginView.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Authorization/LoginView.jsx b/src/views/Authorization/LoginView.jsx index 476f468..bd93055 100644 --- a/src/views/Authorization/LoginView.jsx +++ b/src/views/Authorization/LoginView.jsx @@ -115,7 +115,7 @@ const LoginView = () => { Navigate('/forgot-password') } const generateRandomState = () => { - const randomState = Math.random().toString(36).substring(7) + const randomState = Math.random().toString(32).substring(5) localStorage.setItem('authState', randomState) return randomState From 9dc8fe77bcf3888e54978c1310fbc602118cacba Mon Sep 17 00:00:00 2001 From: Mohamad Tarbin Date: Wed, 5 Mar 2025 19:49:00 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e24c032..b235431 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,4 @@ While maintaining Donetick's commitment to open source, this hosted option will ## License -This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details. I might consider changing it later to something else +This project is licensed under the AGPLv3 License. See the [LICENSE](LICENSE) file for more details. I might consider changing it later to something else