Tweak "already invited" message

Ref T690
pull/183/head
Matt Baer 5 years ago
parent c6564b3d16
commit 5a9182f688
  1. 2
      invites.go

@ -126,7 +126,7 @@ func handleViewInvite(app *App, w http.ResponseWriter, r *http.Request) error {
// check if invite belongs to another user // check if invite belongs to another user
// error can be ignored as not important in this case // error can be ignored as not important in this case
if ownInvite, _ := app.db.IsUsersInvite(inviteCode, u.ID); !ownInvite { if ownInvite, _ := app.db.IsUsersInvite(inviteCode, u.ID); !ownInvite {
addSessionFlash(app, w, r, "No need for an invite, You are already registered.", nil) addSessionFlash(app, w, r, "You're already registered and logged in.", nil)
// show homepage // show homepage
return impart.HTTPError{http.StatusFound, "/me/settings"} return impart.HTTPError{http.StatusFound, "/me/settings"}
} }

Loading…
Cancel
Save