]> source.dussan.org Git - gitea.git/commitdiff
Use disable_form_autofill on Codebase and Gitbucket (#17936)
authorqwerty287 <80460567+qwerty287@users.noreply.github.com>
Wed, 8 Dec 2021 22:33:14 +0000 (23:33 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Dec 2021 22:33:14 +0000 (22:33 +0000)
Removes the old fake input on the Codebase migration screen, and adds the disable_form_autofill

templates/repo/migrate/codebase.tmpl
templates/repo/migrate/gitbucket.tmpl

index 10727229c692b2f98e5e0167e291c6f09342e09d..25390e3241f99ca3fa398cb8d99c402125173a31 100644 (file)
@@ -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}}">
index 9c634dba347fc1dca057f212f9f6d849b68dbbf3..ef5a9255d7774021041e10649b25dad69e2034d1 100644 (file)
@@ -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}}