Fix PIN request and reset route

This commit is contained in:
cvium 2020-09-25 12:52:36 +02:00
parent 64d4696724
commit f0441b0caf
3 changed files with 4 additions and 3 deletions

View File

@ -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",

View File

@ -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
})

View File

@ -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({