]> source.dussan.org Git - gitea.git/commitdiff
Remove errant third closing curly-bracket from account.tmpl and send account ID in...
authorzeripath <art27@cantab.net>
Sun, 19 Apr 2020 12:35:34 +0000 (13:35 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Apr 2020 12:35:34 +0000 (20:35 +0800)
* Remove errant third } from account.tmpl

Fix #11128

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update templates/user/settings/account.tmpl

templates/user/settings/account.tmpl

index f5cf7f79cd2df9761b64de8f18f6477807153136..790ef81f5fb88b8a19dc770d7e3e6622300e4f54 100644 (file)
@@ -92,7 +92,7 @@
                                                                <form action="{{AppSubUrl}}/user/settings/account/email" method="post">
                                                                        {{$.CsrfTokenHtml}}
                                                                        <input name="_method" type="hidden" value="SENDACTIVATION">
-                                                                       <input name="id" type="hidden" value="{{if .IsPrimary}}PRIMARY{{else}}}.ID{{end}}">
+                                                                       <input name="id" type="hidden" value="{{if .IsPrimary}}PRIMARY{{else}}{{.ID}}{{end}}">
                                                                        {{if $.ActivationsPending}}
                                                                                <button disabled class="ui blue tiny button">{{$.i18n.Tr "settings.activations_pending"}}</button>
                                                                        {{else}}