diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-02-27 18:55:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 10:55:13 +0000 |
commit | 6bdfc84e6c579861e034962acf9727bd39774f0f (patch) | |
tree | e1184a3e55fb03ec14750ee679b4a00fc6c21734 /templates/user | |
parent | 6ed74a3fc792669d2d15ab777bd7408265a67ea5 (diff) | |
download | gitea-6bdfc84e6c579861e034962acf9727bd39774f0f.tar.gz gitea-6bdfc84e6c579861e034962acf9727bd39774f0f.zip |
Allow to change primary email before account activation (#29412)
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/auth/activate.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/user/auth/activate.tmpl b/templates/user/auth/activate.tmpl index 51dc1eb6a6..e32a5d8707 100644 --- a/templates/user/auth/activate.tmpl +++ b/templates/user/auth/activate.tmpl @@ -21,6 +21,13 @@ <input name="code" type="hidden" value="{{.ActivationCode}}"> {{else}} <p>{{ctx.Locale.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email}}</p> + <details> + <summary>{{ctx.Locale.Tr "auth.change_unconfirmed_mail_address"}}</summary> + <div class="tw-py-2"> + <label for="change-email">{{ctx.Locale.Tr "email"}}</label> + <input id="change-email" name="change_email" type="email" value="{{.SignedUser.Email}}"> + </div> + </details> <div class="divider"></div> <div class="text right"> <button class="ui primary button">{{ctx.Locale.Tr "auth.resend_mail"}}</button> |