-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
- Gitea version (or commit ref):
1.11.4
- Git version:
1:2.20.1-2+deb10u2
- Operating system:
debian buster
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No: doesn't seem to require email activation, added address already is activated
- Not relevant
- Log gist: none
Description
Clicking Send Activation
on /user/settings/accounts
doesn't trigger any mail, but doesn't show any error (just "reloads" the page).
The issue is in the template:
<input name="id" type="hidden" value="{{if .IsPrimary}}PRIMARY{{else}}}.ID{{end}}"> |
In the generated HTML page it will show <input name="id" type="hidden" value="}.ID">
.
Log show:
gitea[25052]: [Macaron] 2020-04-19 10:04:29: Completed POST /user/settings/account/email 302 Found in 2.042836ms
gitea[25052]: 2020/04/19 10:04:29 ...r/setting/account.go:121:EmailPost() [E] Send activation: email not set for activation
Don't think this could have ever worked since #10557.