({ password })
| 450 | |
| 451 | class UserDeleteHandler extends Handler { |
| 452 | async post({ password }) { |
| 453 | await this.user.checkPassword(password); |
| 454 | const tid = await ScheduleModel.add({ |
| 455 | executeAfter: moment().add(7, 'days').toDate(), |
| 456 | type: 'script', |
| 457 | id: 'deleteUser', |
| 458 | args: { uid: this.user._id }, |
| 459 | }); |
| 460 | await user.setById(this.user._id, { del: tid }); |
| 461 | this.response.template = 'user_delete_pending.html'; |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | class OauthHandler extends Handler { |
nothing calls this directly
no test coverage detected