aboutsummaryrefslogtreecommitdiffhomepage
path: root/model
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2017-12-01 21:51:22 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2017-12-01 21:51:22 -0800
commit1a90c059e716a90c9132fd211df9adda038b8950 (patch)
treeca388018d99de40ed6bd96d52bd9e8fc36087736 /model
parent7cecdbb8561e03868392dde12a2c763e782c948b (diff)
Store tokens in database instead of cookie
Diffstat (limited to 'model')
-rw-r--r--model/token.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/model/token.go b/model/token.go
new file mode 100644
index 0000000..5626a77
--- /dev/null
+++ b/model/token.go
@@ -0,0 +1,11 @@
+// Copyright 2017 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the Apache 2.0
+// license that can be found in the LICENSE file.
+
+package model
+
+// Token represents a CSRF token in the system.
+type Token struct {
+ ID string
+ Value string
+}