-
Notifications
You must be signed in to change notification settings - Fork 85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sethvargo, whaught The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -81,16 +81,9 @@ func (c *Controller) HandleCreate() http.Handler { | |||
} | |||
|
|||
// Create firebase user first, if this fails we don't want a db.User entry | |||
if created, err := user.CreateFirebaseUser(ctx, c.client); err != nil { | |||
flash.Alert("Failed to create user: %v", err) | |||
if _, err := c.createFirebaseUser(ctx, user); err != nil { | |||
c.renderNew(ctx, w) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should swallow this error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not swallowed. c.createFirebaseUser does the flash now (the flash is the same for the places that use the helper)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah i see
/lgtm |
Proposed Changes
**Note: ** This does send the user back through the email verification flow (which is currently bundled with our password-reset invitation and therefore not seen by most users)
This PR fixes the issue without adding a metric. That will be done as a separate PR. See #685
Release Note