From 642db3c8f7d2faf9ff02867cf1e1287fa0e1d593 Mon Sep 17 00:00:00 2001
From: John Olheiser <john.olheiser@gmail.com>
Date: Thu, 26 Jan 2023 14:36:15 -0600
Subject: Fix `delete_repo` in template (#22606)

Currently the value doesn't match the model, so selecting it results in
a 500.

https://github.com/go-gitea/gitea/blob/e8ac6a9aeacf0adf21982abc51baa8938e5dd6bb/models/auth/token_scope.go#L42

Signed-off-by: jolheiser <john.olheiser@gmail.com>
---
 templates/user/settings/applications.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl
index c1503bb535..5cea142238 100644
--- a/templates/user/settings/applications.tmpl
+++ b/templates/user/settings/applications.tmpl
@@ -165,7 +165,7 @@
 					</div>
 					<div class="field">
 						<div class="ui checkbox">
-							<input class="enable-system" type="checkbox" name="scope" value="delete:repo">
+							<input class="enable-system" type="checkbox" name="scope" value="delete_repo">
 							<label>delete_repo</label>
 						</div>
 					</div>
-- 
cgit v1.2.3