|
|
@@ -403,8 +403,8 @@ func (app *App) InitiateEmailVerifyUser(w http.ResponseWriter, r *http.Request)
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
}
|
|
|
|
|
|
-// FinalizEmailVerifyUser completes the email verification flow for a user.
|
|
|
-func (app *App) FinalizEmailVerifyUser(w http.ResponseWriter, r *http.Request) {
|
|
|
+// FinalizeEmailVerifyUser completes the email verification flow for a user.
|
|
|
+func (app *App) FinalizeEmailVerifyUser(w http.ResponseWriter, r *http.Request) {
|
|
|
userID, err := app.getUserIDFromRequest(r)
|
|
|
|
|
|
if err != nil {
|
|
|
@@ -489,6 +489,11 @@ func (app *App) FinalizEmailVerifyUser(w http.ResponseWriter, r *http.Request) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ app.AnalyticsClient.Track(analytics.UserVerifyEmailTrack(&analytics.UserVerifyEmailTrackOpts{
|
|
|
+ UserScopedTrackOpts: analytics.GetUserScopedTrackOpts(user.ID),
|
|
|
+ Email: user.Email,
|
|
|
+ }))
|
|
|
+
|
|
|
http.Redirect(w, r, "/dashboard", 302)
|
|
|
return
|
|
|
}
|