~sircmpwn/meta.sr.ht

bb61ed636991904c9e2fe3a4d2590dd8535c7716 — Drew DeVault 4 months ago 9747bf3 0.56.13
API: Log new user registrations
1 files changed, 3 insertions(+), 0 deletions(-)

M api/graph/schema.resolvers.go
M api/graph/schema.resolvers.go => api/graph/schema.resolvers.go +3 -0
@@ 14,6 14,7 @@ import (
	"encoding/json"
	"errors"
	"fmt"
	"log"
	"net"
	"net/url"
	"sort"


@@ 763,6 764,8 @@ func (r *mutationResolver) RegisterAccount(ctx context.Context, email string, us
		return nil, err
	}

	log.Printf("Registered new account: ~%s <%s> (%d)",
		user.Username, user.Email, user.ID)
	sendRegistrationConfirmation(ctx, &user, pgpKey, confirmation)
	return &user, nil
}