Skip to content

Commit

Permalink
Use disable_form_autofill on Codebase and Gitbucket (go-gitea#17936)
Browse files Browse the repository at this point in the history
Removes the old fake input on the Codebase migration screen, and adds the disable_form_autofill
  • Loading branch information
qwerty287 authored and Stelios Malathouras committed Mar 28, 2022
1 parent d2a318b commit 0ee242a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/migrate/codebase.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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}}">
Expand Down
1 change: 1 addition & 0 deletions templates/repo/migrate/gitbucket.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 0ee242a

Please sign in to comment.