mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 16:03:20 +02:00
Refactor HTTP request context (#17979)
This commit is contained in:
1 parent
9d943bf374
commit
4da1d97810
26 files changed
+139
-177
No files matched your search
@@ -157,7 +157,7 @@ func GetVerificationToken(ctx *context.APIContext) {
|
||||
// "$ref": "#/responses/notFound"
|
||||
|
||||
token := asymkey_model.VerificationToken(ctx.User, 1)
|
||||
ctx.PlainText(http.StatusOK, []byte(token))
|
||||
ctx.PlainText(http.StatusOK, token)
|
||||
}
|
||||
|
||||
// VerifyUserGPGKey creates new GPG key to given user by ID.
|
||||
|
||||
Reference in new issue
Block a user