Tweak "already invited" message

Ref T690
This commit is contained in:
Matt Baer 2019-09-23 10:44:23 -04:00
parent c6564b3d16
commit 5a9182f688
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ func handleViewInvite(app *App, w http.ResponseWriter, r *http.Request) error {
// check if invite belongs to another user
// error can be ignored as not important in this case
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
return impart.HTTPError{http.StatusFound, "/me/settings"}
}