Loading CHANGELOG.md +3 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,9 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr - RPC now allows omitting the `unwrap` parameter for requests with empty payloads. - Upgrade GRPC dependency. ### Fixed - Correctly handle empty email field when authenticating via Apple Sign In. ## [3.18.0] - 2023-10-24 ### Added - Allow HTTP key to be read from an HTTP request's Basic auth header if present. Loading server/core_authenticate.go +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ func AuthenticateApple(ctx context.Context, logger *zap.Logger, db *sql.DB, clie // Create a new account. userID := uuid.Must(uuid.NewV4()).String() query = "INSERT INTO users (id, username, email, apple_id, create_time, update_time) VALUES ($1, $2, $3, $4, now(), now())" query = "INSERT INTO users (id, username, email, apple_id, create_time, update_time) VALUES ($1, $2, nullif($3, ''), $4, now(), now())" result, err := db.ExecContext(ctx, query, userID, username, profile.Email, profile.ID) if err != nil { var pgErr *pgconn.PgError Loading Loading
CHANGELOG.md +3 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,9 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr - RPC now allows omitting the `unwrap` parameter for requests with empty payloads. - Upgrade GRPC dependency. ### Fixed - Correctly handle empty email field when authenticating via Apple Sign In. ## [3.18.0] - 2023-10-24 ### Added - Allow HTTP key to be read from an HTTP request's Basic auth header if present. Loading
server/core_authenticate.go +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ func AuthenticateApple(ctx context.Context, logger *zap.Logger, db *sql.DB, clie // Create a new account. userID := uuid.Must(uuid.NewV4()).String() query = "INSERT INTO users (id, username, email, apple_id, create_time, update_time) VALUES ($1, $2, $3, $4, now(), now())" query = "INSERT INTO users (id, username, email, apple_id, create_time, update_time) VALUES ($1, $2, nullif($3, ''), $4, now(), now())" result, err := db.ExecContext(ctx, query, userID, username, profile.Email, profile.ID) if err != nil { var pgErr *pgconn.PgError Loading