diff options
author | 2017-12-29 14:17:53 -0800 | |
---|---|---|
committer | 2017-12-29 14:17:53 -0800 | |
commit | 9eb91e6f0b175a1e96fd252924a52261ee595ba8 (patch) | |
tree | 599758d1a6eeb98b0bb8869a59c4dd84589db80b /server/core/context.go | |
parent | 0f053b07a55c6dad2ec4b6da75995ccfa26bcb4e (diff) | |
download | v2-9eb91e6f0b175a1e96fd252924a52261ee595ba8.tar.gz v2-9eb91e6f0b175a1e96fd252924a52261ee595ba8.tar.zst v2-9eb91e6f0b175a1e96fd252924a52261ee595ba8.zip |
Make sure OAuth2 users cannot be associated multiple times
Diffstat (limited to 'server/core/context.go')
-rw-r--r-- | server/core/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/core/context.go b/server/core/context.go index dfd8e5b3..d80ce1f8 100644 --- a/server/core/context.go +++ b/server/core/context.go @@ -135,7 +135,7 @@ func (c *Context) SetFlashErrorMessage(message string) { // FlashErrorMessage returns the error flash message and remove it. func (c *Context) FlashErrorMessage() string { - message := c.getContextStringValue(middleware.FlashMessageContextKey) + message := c.getContextStringValue(middleware.FlashErrorMessageContextKey) c.store.UpdateSessionField(c.SessionID(), "flash_error_message", "") return message } |