summaryrefslogtreecommitdiffstats
path: root/templates/user/auth
diff options
context:
space:
mode:
authorKN4CK3R <KN4CK3R@users.noreply.github.com>2021-04-30 22:21:33 +0200
committerGitHub <noreply@github.com>2021-04-30 22:21:33 +0200
commit7670c1c99e5ee9e1d6fc1f866c89df2712987bd2 (patch)
tree962f96d3268350f116de9d67fd1a1c437415d963 /templates/user/auth
parentee3fb92419338e12a531168b486d3c8f5c2164c0 (diff)
downloadgitea-7670c1c99e5ee9e1d6fc1f866c89df2712987bd2.tar.gz
gitea-7670c1c99e5ee9e1d6fc1f866c89df2712987bd2.zip
Fixed several activation bugs (#15473)
* Removed unneeded form tag. * Fixed typo. * Fixed NPE. * Use better error page. * Splitted GET and POST.
Diffstat (limited to 'templates/user/auth')
-rw-r--r--templates/user/auth/activate.tmpl20
1 files changed, 9 insertions, 11 deletions
diff --git a/templates/user/auth/activate.tmpl b/templates/user/auth/activate.tmpl
index cc6f52b571..8d75c1d92e 100644
--- a/templates/user/auth/activate.tmpl
+++ b/templates/user/auth/activate.tmpl
@@ -19,17 +19,15 @@
{{end}}
{{else}}
{{if .NeedsPassword}}
- <form class="ui form" action="{{AppSubUrl}}/user/activate" method="post">
- <div class="required inline field">
- <label for="password">{{.i18n.Tr "password"}}</label>
- <input id="password" name="password" type="password" autocomplete="off" required>
- </div>
- <div class="inline field">
- <label></label>
- <button class="ui green button">{{.i18n.Tr "install.confirm_password"}}</button>
- </div>
- <input id="code" name="code" type="hidden" value="{{.Code}}">
- </form>
+ <div class="required inline field">
+ <label for="password">{{.i18n.Tr "password"}}</label>
+ <input id="password" name="password" type="password" autocomplete="off" required>
+ </div>
+ <div class="inline field">
+ <label></label>
+ <button class="ui green button">{{.i18n.Tr "install.confirm_password"}}</button>
+ </div>
+ <input id="code" name="code" type="hidden" value="{{.Code}}">
{{else if .IsSendRegisterMail}}
<p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" (.Email|Escape) .ActiveCodeLives | Str2html}}</p>
{{else if .IsActivateFailed}}