What is the UNSECURED keyword used in FatFractal server extension declarations?

StackOverflow https://stackoverflow.com/questions/15868833

  •  02-04-2022
  •  | 
  •  

سؤال

For server extension declarations in FFDL, I have seen variations both including and excluding the UNSECURED keyword as follows:

CREATE EXTENSION /ActivateUser UNSECURED AS javascript:require ('scripts/RegistrationExtension').activateUser();

CREATE EXTENSION /ChangePassword AS javascript:require ('scripts/PasswordExtension').changePassword();

What is the UNSECURED keyword used for? Most examples I have found simply exclude it.

هل كانت مفيدة؟

المحلول

Normally, a user needs to be logged in to hit a server extension, but when you specify UNSECURED this restriction is lifted and anonymous users can trigger the extension.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top