mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
Renamed incorrectly named variable
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
//@flow
|
//@flow
|
||||||
import { apiClient } from "@scm-manager/ui-components";
|
import { apiClient } from "@scm-manager/ui-components";
|
||||||
const CONTENT_TYPE_USER = "application/vnd.scmm-passwordOverwrite+json;v=2";
|
const CONTENT_TYPE_PASSWORD_OVERWRITE =
|
||||||
|
"application/vnd.scmm-passwordOverwrite+json;v=2";
|
||||||
|
|
||||||
export function updatePassword(url: string, password: string) {
|
export function updatePassword(url: string, password: string) {
|
||||||
return apiClient
|
return apiClient
|
||||||
.put(url, { newPassword: password }, CONTENT_TYPE_USER)
|
.put(url, { newPassword: password }, CONTENT_TYPE_PASSWORD_OVERWRITE)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
return response;
|
return response;
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user