Confirm user email with a post request instead of query string?

When a user signs up they get an email sent to them with a link - like so:

https://www.someapplication.com/api/auth/email-confirmation?confirmation=e4b076405a336e8bc11312a9c8d3f5a4249decf4

Is it possible to do a post request that includes the confirmation code? Like so:

this.$axios.post('/api/auth/email-confirmation', {
          confirmation: e4b076405a336e8bc11312a9c8d3f5a4249decf4
        }

Thanks.

Hi @leopoldkristjansson,

I don’t think you can by default do a post request that includes the confirmation code BUT you can extend the users-permissions plugin OR create a custom controller / routes in order to do it programatically in Strapi by updating the User

1 Like