mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-22 22:03:13 +00:00
Fix CSRF problem on push function
CSRF is not needed on push because user is not calling other pages. This will fix issues https://github.com/nerzhul/ocsms/issues/25 and https://github.com/nerzhul/ownCloud-SMS-App/issues/8
This commit is contained in:
@@ -204,6 +204,7 @@ class SmsController extends Controller {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
|
* @NoCSRFRequired
|
||||||
*/
|
*/
|
||||||
public function push ($smsCount, $smsDatas) {
|
public function push ($smsCount, $smsDatas) {
|
||||||
if ($this->checkPushStructure($smsCount, $smsDatas, true) === false) {
|
if ($this->checkPushStructure($smsCount, $smsDatas, true) === false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user