diff --git a/package.json b/package.json index a38cf6c843..d2072a85a9 100644 --- a/package.json +++ b/package.json @@ -214,7 +214,7 @@ "src/components/castSenderApi.js", "src/controllers/session/addServer/index.js", "src/controllers/session/forgotPassword/index.js", - "src/controllers/session/redeemPassword/index.js", + "src/controllers/session/resetPassword/index.js", "src/controllers/session/login/index.js", "src/controllers/session/selectServer/index.js", "src/controllers/dashboard/apikeys.js", diff --git a/src/controllers/session/forgotPassword/index.js b/src/controllers/session/forgotPassword/index.js index 0f2464e2d8..5b92e255da 100644 --- a/src/controllers/session/forgotPassword/index.js +++ b/src/controllers/session/forgotPassword/index.js @@ -41,6 +41,7 @@ import globalize from 'globalize'; type: 'POST', url: ApiClient.getUrl('Users/ForgotPassword'), dataType: 'json', + contentType: 'application/json', data: JSON.stringify({ EnteredUsername: view.querySelector('#txtName').value }) diff --git a/src/scripts/routes.js b/src/scripts/routes.js index d2d8e91886..8e2440b140 100644 --- a/src/scripts/routes.js +++ b/src/scripts/routes.js @@ -62,11 +62,11 @@ import 'detailtablecss'; defineRoute({ alias: '/forgotpasswordpin.html', - path: '/controllers/session/redeemPassword/index.html', + path: '/controllers/session/resetPassword/index.html', autoFocus: false, anonymous: true, startup: true, - controller: 'session/redeemPassword/index' + controller: 'session/resetPassword/index' }); defineRoute({