HackRU / lcs

The backend for HackRU's website. Manages the user system.
http://hackru.org
MIT License
6 stars 5 forks source link

Createmagiclink: handle sparkpost issues and enforce `emailsTo` #21

Open hemangandhi opened 6 years ago

hemangandhi commented 6 years ago

Though sparkpost is invoked, the error cases are not handled. This should be altered for a well-functioning system.

Currently, a mismatch between emailsTo's length and numLinks can cause an out of bounds array access. This should be remedied. A simple fix would be just accepting an emailsTo parameter with the number of links inferred from the length.