User account deletion (#937)
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/937 Co-authored-by: konrad <konrad@kola-entertainments.de> Co-committed-by: konrad <konrad@kola-entertainments.de>
This commit is contained in:
@ -312,6 +312,13 @@ func registerAPIRoutes(a *echo.Group) {
|
||||
u.GET("/settings/totp/qrcode", apiv1.UserTOTPQrCode)
|
||||
}
|
||||
|
||||
// User deletion
|
||||
if config.ServiceEnableUserDeletion.GetBool() {
|
||||
u.POST("/deletion/request", apiv1.UserRequestDeletion)
|
||||
u.POST("/deletion/confirm", apiv1.UserConfirmDeletion)
|
||||
u.POST("/deletion/cancel", apiv1.UserCancelDeletion)
|
||||
}
|
||||
|
||||
listHandler := &handler.WebHandler{
|
||||
EmptyStruct: func() handler.CObject {
|
||||
return &models.List{}
|
||||
|
Reference in New Issue
Block a user