From 30261933139ca2875c5835910b44148371154e29 Mon Sep 17 00:00:00 2001 From: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:16:43 +0100 Subject: [PATCH] #394: Fixed body of activate request --- CHANGELOG.md | 2 ++ src/components/activation-code/activation-code-activate.jsx | 4 ++-- src/components/user/login.jsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e519f01..633620d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- [#229](https://github.com/os2display/display-admin-client/pull/229) + - Fixed post body of activation POST request. - [#228](https://github.com/os2display/display-admin-client/pull/228) - Changed login page to only get oidc urls when a login button has been clicked. - [#227](https://github.com/os2display/display-admin-client/pull/227) diff --git a/src/components/activation-code/activation-code-activate.jsx b/src/components/activation-code/activation-code-activate.jsx index 76a39b46..a2776ba5 100644 --- a/src/components/activation-code/activation-code-activate.jsx +++ b/src/components/activation-code/activation-code-activate.jsx @@ -14,9 +14,9 @@ import FormInput from "../util/forms/form-input"; import ContentFooter from "../util/content-footer/content-footer"; /** - * The user create component. + * The activation code activate page. * - * @returns {object} The user create page. + * @returns {object} The activation code activate page. */ function ActivationCodeActivate() { const { t } = useTranslation("common", { diff --git a/src/components/user/login.jsx b/src/components/user/login.jsx index 3a8f9ab5..8ab68cb2 100644 --- a/src/components/user/login.jsx +++ b/src/components/user/login.jsx @@ -148,7 +148,7 @@ function Login() { dispatch( api.endpoints.postV1UserActivationCodesActivate.initiate({ - userActivationCodeUserActivateInput: JSON.stringify({ + userActivationCodeActivationCode: JSON.stringify({ activationCode, }), })