Hello. I have a form, that user fills and gets confirmation email to send it. Confirmation links looks like: DesktopModules/ISForm/API/Confirmat...42e8f192a0 Dnn Version is 9.2.2
User can not be registered (it is very important, there is no registration enabled on the site) When he clicks the link, it should send email to client (website's owner).
I am getting error
Authorization has been denied for this request.
code is
public class ConfirmationController : DnnApiController { [AllowAnonymous] [System.Web.Http.AcceptVerbs("GET", "POST")] [System.Web.Http.HttpGet] [DnnModuleAuthorize(AccessLevel = SecurityAccessLevel.Anonymous)] public HttpResponseMessage Confirm(Guid? guid = null) { // doing some cool stuff }
Everywhere is written that I should use attribute [Authorize(AllowAnonymous = true)], but AllowAnonymous = true doen't exist.(Perhaps it was depreceted and removed) Please, I need your help.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.