mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 12:42:24 -05:00
[feature] New user sign-up via web page (#2796)
* [feature] User sign-up form and admin notifs * add chosen + filtered languages to migration * remove stray comment * chosen languages schmosen schmanguages * proper error on local account missing
This commit is contained in:
parent
a483bd9e38
commit
9fb8a78f91
68 changed files with 1456 additions and 437 deletions
|
|
@ -20,6 +20,7 @@ package testrig
|
|||
import (
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/email"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
)
|
||||
|
||||
// NewEmailSender returns a noop email sender that won't make any remote calls.
|
||||
|
|
@ -38,6 +39,10 @@ func NewEmailSender(templateBaseDir string, sentEmails map[string]string) email.
|
|||
sendCallback = func(toAddress string, message string) {
|
||||
sentEmails[toAddress] = message
|
||||
}
|
||||
} else {
|
||||
sendCallback = func(toAddress string, message string) {
|
||||
log.Infof(nil, "Sent email to %s: %s", toAddress, message)
|
||||
}
|
||||
}
|
||||
|
||||
s, err := email.NewNoopSender(sendCallback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue