mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 13:00:10 +02:00
Add reset password, fix #58
This commit is contained in:
1 parent
3ebc9b991a
commit
b7c3b0cc73
10 files changed
+214
-29
No files matched your search
@@ -67,6 +67,10 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
|
||||
"DateFormat": DateFormat,
|
||||
"List": List,
|
||||
"Mail2Domain": func(mail string) string {
|
||||
if !strings.Contains(mail, "@") {
|
||||
return "try.gogits.org"
|
||||
}
|
||||
|
||||
suffix := strings.SplitN(mail, "@", 2)[1]
|
||||
domain, ok := mailDomains[suffix]
|
||||
if !ok {
|
||||
|
||||
Reference in new issue
Block a user