RaspberryPiFoundation / editor-api

Code Editor backend
https://editor.raspberrypi.org
GNU Affero General Public License v3.0
22 stars 4 forks source link

Create schools in Profile API upon verification #334

Closed chrisroos closed 6 days ago

chrisroos commented 2 weeks ago

This PR expands SchoolVerificationService#verify so that it uses the Profile API to create the school in Profile during verification. If any part of verification fails (updating the school, creating the teacher and owner roles, or creating the school in Profile API) then we abort verification and display a message saying that verification failed.

chrisroos commented 6 days ago

@sra405's confirmed that the API keys have been set in staging and production so I'm going to merge this now.