add profile picture

This commit is contained in:
Tutur33
2023-12-06 20:43:25 +01:00
parent bdc6c56467
commit f81296cf7c
15 changed files with 952 additions and 32 deletions
+7
View File
@@ -30,4 +30,11 @@ export default class CompteController {
response.redirect().back()
}
async delete({ auth, response }: HttpContextContract) {
const user = auth.user
await user!.delete()
await auth.logout()
response.redirect().toRoute('home')
}
}