Hello,
app:check brings some errors.
e.g. OCP\JSON - Static method of deprecated class must not be called
its complaining about \OCP\JSON::checkLoggedIn();
how do I fix it?
the V9 Dev Manual still explains to use these
Hello,
app:check brings some errors.
e.g. OCP\JSON - Static method of deprecated class must not be called
its complaining about \OCP\JSON::checkLoggedIn();
how do I fix it?
the V9 Dev Manual still explains to use these
Well basically you don’t use the old style with ajax endpoints, but use full controllers instead:
https://docs.nextcloud.com/server/9/developer_manual/app/controllers.html
In that case, checkedLoggedIn
is checked by default, other options are listed near the end:
https://docs.nextcloud.com/server/9/developer_manual/app/controllers.html#authentication