diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2021-12-08 23:33:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 22:33:14 +0000 |
commit | d2d9bc846ec13b7a8c5be3c6e671561ea4afcdc8 (patch) | |
tree | af1caf5b902d379a3c81a91d7fbf5b022e1aac9d | |
parent | 9e6e1dc950f06bbd000d5b6438f39113e8902082 (diff) | |
download | gitea-d2d9bc846ec13b7a8c5be3c6e671561ea4afcdc8.tar.gz gitea-d2d9bc846ec13b7a8c5be3c6e671561ea4afcdc8.zip |
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
-rw-r--r-- | templates/repo/migrate/codebase.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/gitbucket.tmpl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/migrate/codebase.tmpl b/templates/repo/migrate/codebase.tmpl index 10727229c6..25390e3241 100644 --- a/templates/repo/migrate/codebase.tmpl +++ b/templates/repo/migrate/codebase.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}}"> diff --git a/templates/repo/migrate/gitbucket.tmpl b/templates/repo/migrate/gitbucket.tmpl index 9c634dba34..ef5a9255d7 100644 --- a/templates/repo/migrate/gitbucket.tmpl +++ b/templates/repo/migrate/gitbucket.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}} |