Skip to content

Commit d2d9bc8

Browse files
authored
Use disable_form_autofill on Codebase and Gitbucket (#17936)
Removes the old fake input on the Codebase migration screen, and adds the disable_form_autofill
1 parent 9e6e1dc commit d2d9bc8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/repo/migrate/codebase.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div class="ui middle very relaxed page grid">
44
<div class="column">
55
<form class="ui form" action="{{.Link}}" method="post">
6+
{{template "base/disable_form_autofill"}}
67
{{.CsrfTokenHtml}}
78
<h3 class="ui top attached header">
89
{{.i18n.Tr "repo.migrate.migrate" .service.Title}}
@@ -22,7 +23,6 @@
2223
<label for="auth_username">{{.i18n.Tr "username"}}</label>
2324
<input id="auth_username" name="auth_username" value="{{.auth_username}}" {{if not .auth_username}}data-need-clear="true"{{end}}>
2425
</div>
25-
<input class="fake" type="password">
2626
<div class="inline field {{if .Err_Auth}}error{{end}}">
2727
<label for="auth_password">{{.i18n.Tr "password"}}</label>
2828
<input id="auth_password" name="auth_password" type="password" value="{{.auth_password}}">

templates/repo/migrate/gitbucket.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div class="ui middle very relaxed page grid">
44
<div class="column">
55
<form class="ui form" action="{{.Link}}" method="post">
6+
{{template "base/disable_form_autofill"}}
67
{{.CsrfTokenHtml}}
78
<h3 class="ui top attached header">
89
{{.i18n.Tr "repo.migrate.migrate" .service.Title}}

0 commit comments

Comments
 (0)