2017-12-02 06:51:22 +01:00
|
|
|
// 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
|
|
|
|
|
2017-12-03 02:04:01 +01:00
|
|
|
import "fmt"
|
|
|
|
|
2017-12-02 06:51:22 +01:00
|
|
|
// Token represents a CSRF token in the system.
|
|
|
|
type Token struct {
|
|
|
|
ID string
|
|
|
|
Value string
|
|
|
|
}
|
2017-12-03 02:04:01 +01:00
|
|
|
|
|
|
|
func (t Token) String() string {
|
|
|
|
return fmt.Sprintf(`ID="%s"`, t.ID)
|
|
|
|
}
|