Added email check

In older GpsGate installations, SiteAdmin user has been allowed to share email with other users on the system.

Improvement

We have now added a check to avoid that, to keep the server neat and clean.

You may get this error when you try to add an application.

Application could not be created: Error: Email john@example.com already belongs to username XYZ

How to avoid this error message

There are 3 possible ways:

1. Click in Advanced button and select/create a new Administrator for this application.

2. Change/remove the email address from the SiteAdmin user in SiteAdmin > Applications > SiteAdmin Users > (select the user) > E-mail.

3. Login to the application and change the email from the user which currently owns it.