mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Optional feedback on account deletion (#8750)
* Fixed rebase. * Removed commented out mail sending to pass linting. Styles from settings.styl still not propagating to app.css * fix(feedback): address PR comments * fix(style): linting errors
This commit is contained in:
@@ -187,11 +187,11 @@ habitrpg.controller('SettingsCtrl',
|
||||
$rootScope.$state.go('tasks');
|
||||
}
|
||||
|
||||
$scope['delete'] = function(password) {
|
||||
$scope.delete = function(password, feedback) {
|
||||
$http({
|
||||
url: ApiUrl.get() + '/api/v3/user',
|
||||
method: 'DELETE',
|
||||
data: {password: password},
|
||||
data: {password: password, feedback: feedback},
|
||||
})
|
||||
.then(function(res, code) {
|
||||
localStorage.clear();
|
||||
|
||||
Reference in New Issue
Block a user