Skip to content

Commit

Permalink
require first & last name when adding new activist
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehobbs committed Mar 7, 2021
1 parent 1b700e6 commit 0437e7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/EventEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,11 @@ export default Vue.extend({
for (let attendee of this.attendees) {
attendee = attendee.trim();
if (attendee != '' && !attendeesSet.has(attendee)) {
// check that attendee has first & last name
if (attendee.indexOf(' ') == -1) {
flashMessage('Error: New activists must have first and last name.', true);
return;
}
attendees.push(attendee);
attendeesSet.add(attendee);
}
Expand Down

0 comments on commit 0437e7f

Please sign in to comment.