mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 16:27:30 -06:00
[feature] Self-serve email change for users (#2957)
* [feature] Email change * frontend stuff for changing email * docs * tests etc * differentiate more clearly between local user+account and account * populate user
This commit is contained in:
parent
131020faeb
commit
bcda048eab
50 changed files with 1118 additions and 309 deletions
|
|
@ -26,13 +26,20 @@ const (
|
|||
type ConfirmData struct {
|
||||
// Username to be addressed.
|
||||
Username string
|
||||
// URL of the instance to present to the receiver.
|
||||
// URL of the instance to
|
||||
// present to the receiver.
|
||||
InstanceURL string
|
||||
// Name of the instance to present to the receiver.
|
||||
// Name of the instance to
|
||||
// present to the receiver.
|
||||
InstanceName string
|
||||
// Link to present to the receiver to click on and do the confirmation.
|
||||
// Should be a full link with protocol eg., https://example.org/confirm_email?token=some-long-token
|
||||
// Link to present to the receiver to
|
||||
// click on and do the confirmation.
|
||||
// Should be a full link with protocol
|
||||
// eg., https://example.org/confirm_email?token=some-long-token
|
||||
ConfirmLink string
|
||||
// Is this confirm email being sent
|
||||
// because this is a new sign-up?
|
||||
NewSignup bool
|
||||
}
|
||||
|
||||
func (s *sender) SendConfirmEmail(toAddress string, data ConfirmData) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue