diff --git a/src/app/config.js b/src/app/config.js index 0c02e59b78..466dcac052 100644 --- a/src/app/config.js +++ b/src/app/config.js @@ -8,7 +8,7 @@ angular $qProvider.errorOnUnhandledRejections(false); $locationProvider.hashPrefix(''); jwtOptionsProvider.config({ - urlParam: 'access_token3', + urlParam: 'access_token', whiteListedDomains: appSettings.whitelistDomains }); var refreshPromise; @@ -263,6 +263,24 @@ angular bodyClass: 'login-page' } }) + .state('frontend.recover-delete', { + url: '^/recover-delete', + templateUrl: 'app/accounts/views/accountsRecoverDelete.html', + controller: 'accountsRecoverDeleteController', + data: { + pageTitle: 'Delete Account', + bodyClass: 'login-page' + } + }) + .state('frontend.verify-recover-delete', { + url: '^/verify-recover-delete?userId&token&email', + templateUrl: 'app/accounts/views/accountsVerifyRecoverDelete.html', + controller: 'accountsVerifyRecoverDeleteController', + data: { + pageTitle: 'Confirm Delete Account', + bodyClass: 'login-page' + } + }) .state('frontend.register', { url: '^/register?org&premium', templateUrl: 'app/accounts/views/accountsRegister.html', diff --git a/src/app/services/apiService.js b/src/app/services/apiService.js index 034b6e38d4..6f78215268 100644 --- a/src/app/services/apiService.js +++ b/src/app/services/apiService.js @@ -114,6 +114,8 @@ email: { url: _apiUri + '/accounts/email', method: 'POST', params: {} }, verifyEmailToken: { url: _apiUri + '/accounts/verify-email-token', method: 'POST', params: {} }, verifyEmail: { url: _apiUri + '/accounts/verify-email', method: 'POST', params: {} }, + postDeleteRecoverToken: { url: _apiUri + '/accounts/delete-recover-token', method: 'POST', params: {} }, + postDeleteRecover: { url: _apiUri + '/accounts/delete-recover', method: 'POST', params: {} }, putPassword: { url: _apiUri + '/accounts/password', method: 'POST', params: {} }, getProfile: { url: _apiUri + '/accounts/profile', method: 'GET', params: {} }, putProfile: { url: _apiUri + '/accounts/profile', method: 'POST', params: {} },