maranmaran opened a new pull request, #564:
URL: https://github.com/apache/pulsar-manager/pull/564

   Fixes #563 and #537
   
   ### Motivation
   
   When creating superuser, currently there's no guard to protect against 
already created superuser. 
   If you seed superuser more then one times, it breaks login for that 
particular user as the request throws `InternalServerError` on login
   
   ### Modifications
   
   In the same style of other guards within `UsersController` I've added query 
to repository to get entity by name for the incoming user payload. If the 
entity exists we return validation error.
   
   ### Verifying this change
   - [x] Make sure that the change passes the `./gradlew build` checks.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to