FriendsOfFlarum / doorman

🚪 Only allow certain people to join your forum
MIT License
24 stars 15 forks source link

Alert messages are not working #39

Closed hasan-ozbey closed 3 years ago

hasan-ozbey commented 3 years ago

Steps to reproduce:

  1. Create an invite code.
  2. Open "Send Invite Codes" modal by clicking the mail button.
  3. Type an invalid e-mail address.
  4. Hit the "space".
  5. There is an error in console log says "DOMException: String contains an invalid character"

because these are not the way how we initialize alerts: https://github.com/FriendsOfFlarum/doorman/blob/ab049df0c3c40d3612799d99990622bc78b8e948/js/src/admin/components/InviteCodeModal.js#L99 https://github.com/FriendsOfFlarum/doorman/blob/ab049df0c3c40d3612799d99990622bc78b8e948/js/src/admin/components/InviteCodeModal.js#L108-L110 https://github.com/FriendsOfFlarum/doorman/blob/ab049df0c3c40d3612799d99990622bc78b8e948/js/src/admin/components/InviteCodeModal.js#L144