summaryrefslogtreecommitdiffstats
path: root/templates/repo/migrate/onedev.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-10-19 06:08:41 +0800
committerGitHub <noreply@github.com>2021-10-19 01:08:41 +0300
commit4822eed99dc20742fcea5c31c9a9a192188a53e0 (patch)
tree119697fb3ba115a7c098790320bb822b43a06654 /templates/repo/migrate/onedev.tmpl
parentc59afa752d9746af6d870635ce3baaaff67b8027 (diff)
downloadgitea-4822eed99dc20742fcea5c31c9a9a192188a53e0.tar.gz
gitea-4822eed99dc20742fcea5c31c9a9a192188a53e0.zip
Disable form autofill (#17291)
]* fix aria-hidden and tabindex * use {{template "base/disable_form_autofill"}} instead of {{DisableFormAutofill}} Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/repo/migrate/onedev.tmpl')
-rw-r--r--templates/repo/migrate/onedev.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/migrate/onedev.tmpl b/templates/repo/migrate/onedev.tmpl
index def366f9d8..3dcc253d2e 100644
--- a/templates/repo/migrate/onedev.tmpl
+++ b/templates/repo/migrate/onedev.tmpl
@@ -3,6 +3,7 @@
<div class="ui middle very relaxed page grid">
<div class="column">
<form class="ui form" action="{{.Link}}" method="post">
+ {{template "base/disable_form_autofill"}}
{{.CsrfTokenHtml}}
<h3 class="ui top attached header">
{{.i18n.Tr "repo.migrate.migrate" .service.Title}}
@@ -22,7 +23,6 @@
<label for="auth_username">{{.i18n.Tr "username"}}</label>
<input id="auth_username" name="auth_username" value="{{.auth_username}}" {{if not .auth_username}}data-need-clear="true"{{end}}>
</div>
- <input class="fake" type="password">
<div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_password">{{.i18n.Tr "password"}}</label>
<input id="auth_password" name="auth_password" type="password" value="{{.auth_password}}">