updated response messages and rebuilt ui/dist

This commit is contained in:
Gani Georgiev
2022-09-02 10:00:36 +03:00
parent 06a7f1af05
commit df1a947b61
17 changed files with 690 additions and 688 deletions
+1 -1
View File
@@ -505,7 +505,7 @@ func (api *userApi) unlinkExternalAuth(c echo.Context) error {
handlerErr := api.app.OnUserBeforeUnlinkExternalAuthRequest().Trigger(event, func(e *core.UserUnlinkExternalAuthEvent) error {
if err := api.app.Dao().DeleteExternalAuth(externalAuth); err != nil {
return rest.NewBadRequestError("Cannot unlink the external auth reference. Make sure that the user has other linked auth providers OR has an email address.", err)
return rest.NewBadRequestError("Cannot unlink the external auth provider. Make sure that the user has other linked auth providers OR has an email address.", err)
}
return e.HttpContext.NoContent(http.StatusNoContent)