Skip to content

Commit 1c36c99

Browse files
author
Nils L. Hillmann
committed
Give an error when uid equals 0
1 parent 99682da commit 1c36c99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/user/oauth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ func InfoOAuth(ctx *context.Context) {
225225
Picture: authUser.AvatarLink(),
226226
}
227227
ctx.JSON(http.StatusOK, response)
228+
} else {
229+
ctx.ServerError("InfoOAuth:", fmt.Errorf("UserID not valid"))
228230
}
229231
}
230232

0 commit comments

Comments
 (0)