Skip to content

Commit

Permalink
832 - Create new user gives HTTP 422 Unprocessable Entity exception (#…
Browse files Browse the repository at this point in the history
…833)

* 832 - [User Management] Create new user gives HTTP 422 Unprocessable Entity exception

* Updated CHANGELOG.md file
  • Loading branch information
chriscalhoun1974 authored Jul 8, 2022
1 parent a6b91e5 commit 4efd217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The types of changes are:
* Resolve issue with MyPy seeing files in fidesops as missing imports [#719](https://github.com/ethyca/fidesops/pull/719)
* Fixed `check-migrations` Make command [#806](https://github.com/ethyca/fidesops/pull/806)
* Fix issue requiring separate install of snowflake-connector-python [#807](https://github.com/ethyca/fidesops/pull/807)
* [User Management] Create new user gives HTTP 422 Unprocessable Entity exception [#832] (https://github.com/ethyca/fidesops/pull/833)

### Docs
* Backend UI deployment [#827](https://github.com/ethyca/fidesops/pull/827)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import React from "react";

import { USER_MANAGEMENT_ROUTE, USER_PRIVILEGES } from "../../constants";
import { isErrorWithDetail, isErrorWithDetailArray } from "../common/helpers";
import { utf8ToB64 } from "../common/utils";
import {
useCreateUserMutation,
useUpdateUserPermissionsMutation,
Expand All @@ -44,7 +45,7 @@ const useUserForm = () => {
username: values.username,
first_name: values.first_name,
last_name: values.last_name,
password: values.password,
password: utf8ToB64(values.password),
};

const createUserResult = await createUser(userBody);
Expand Down

0 comments on commit 4efd217

Please sign in to comment.