User Self Deletion (option)

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
briajer
Posts: 15
Joined: 18 Oct 2022, 15:43

User Self Deletion (option)

Post by briajer » 30 Mar 2023, 13:20

What is the best way to implement the user deletion while they are logged in?

https://aimeos.org/docs/latest/frontend ... e-customer

I would like to have a button or link within the user account (bottom of page) with a secondary (are you sure) check.

The documentation just seems to show a CLI command but i'm looking for a solution in the front end UI.

Thanks

User avatar
aimeos
Administrator
Posts: 7885
Joined: 01 Jan 1970, 00:00

Re: User Self Deletion (option)

Post by aimeos » 02 Apr 2023, 11:16

There's also example JS code in the second tab (jQuery)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

briajer
Posts: 15
Joined: 18 Oct 2022, 15:43

Re: User Self Deletion (option)

Post by briajer » 04 Apr 2023, 16:34

if the cURL command is run in a script what is needed specifically in the CSP / CSRF?

i'm running into an issue where it won't run the script.

a nonce or ('nonce-...') is required to enable inline execution.
may also be connected to script-src default-src

User avatar
aimeos
Administrator
Posts: 7885
Joined: 01 Jan 1970, 00:00

Re: User Self Deletion (option)

Post by aimeos » 07 Apr 2023, 08:40

You can't use inline Javascript for security reasons. Instead, add your code to a .js file that's included in the page.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply