While there is currently validation of the token to the channel, the specific endpoint used for invitations requires the 'admin' scope for the owner of the token, without such the lack of error error (#2627054: Notice: Undefined index: error in Drupal\slack_invite\Form\SlackInviteForm->submitForm()) will occur.
Will look into a patch this evening.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | admin_scope-2627060-3.patch | 911 bytes | deciphered |
| #3 | interdiff.txt | 828 bytes | deciphered |
Comments
Comment #2
decipheredComment #3
decipheredFixed issue with original patch.
Comment #5
btmash commentedI liked your patch and how you found the admin scope and committed your patch. I made some additional changes on top of it so your setErrorByName() would now throw an exception and getMessage() instead of the hardcoded message.