1
0

Added new checks (#2)

* added gocyclo-check
* Added new tests to drone
* Added new checks to makefile
This commit is contained in:
konrad
2018-09-23 19:15:14 +00:00
committed by Gitea
parent b912ff4176
commit e724aeb206
9 changed files with 34 additions and 8 deletions

View File

@ -30,6 +30,9 @@ func UserChangePassword(c echo.Context) error {
// Check if the user is itself
userJWTinfo, err := models.GetCurrentUser(c)
if err != nil {
return c.JSON(http.StatusInternalServerError, models.Message{"Error getting current user."})
}
if userJWTinfo.ID != userID {
return echo.ErrUnauthorized