mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-09 09:11:56 +02:00
add profile picture
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user