mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
everywhere: use different session cookie names
If the user is hosting the dashboard in the same domain as their blog (with a nginx suburi, for example), the two session cookies clash; logging into one service logs you out of the other. With this patch, both have separate names. Fixes https://gitlab.com/commento/commento-ce/issues/49
This commit is contained in:
@ -17,7 +17,7 @@ var errorNoSuchConfirmationToken = errors.New("This email confirmation link has
|
||||
var errorNoSuchResetToken = errors.New("This password reset link has expired.")
|
||||
var errorNotAuthorised = errors.New("You're not authorised to access that.")
|
||||
var errorEmailAlreadyExists = errors.New("That email address has already been registered.")
|
||||
var errorNoSuchSession = errors.New("No such session/state.")
|
||||
var errorNoSuchToken = errors.New("No such session token.")
|
||||
var errorNoSuchCommenter = errors.New("No such commenter.")
|
||||
var errorAlreadyUpvoted = errors.New("You have already upvoted that comment.")
|
||||
var errorNoSuchDomain = errors.New("This domain is not registered with Commento.")
|
||||
@ -32,8 +32,6 @@ var errorForbiddenEdit = errors.New("You cannot edit someone else's comment.")
|
||||
var errorMissingSmtpAddress = errors.New("Missing SMTP_FROM_ADDRESS")
|
||||
var errorSmtpNotConfigured = errors.New("SMTP is not configured.")
|
||||
var errorOauthMisconfigured = errors.New("OAuth is misconfigured.")
|
||||
var errorUnassociatedSession = errors.New("No user associated with that session.")
|
||||
var errorSessionAlreadyInUse = errors.New("Session is already in use.")
|
||||
var errorCannotReadResponse = errors.New("Cannot read response.")
|
||||
var errorNotModerator = errors.New("You need to be a moderator to do that.")
|
||||
var errorNotADirectory = errors.New("The given path is not a directory.")
|
||||
|
Reference in New Issue
Block a user