1
0

Use the auth methods to get IDs to avoid unneeded casts

This commit is contained in:
kolaente
2019-06-28 10:21:48 +02:00
parent fc3c5f2187
commit f1d21ea52b
25 changed files with 65 additions and 146 deletions

3
vendor/code.vikunja.io/web/web.go generated vendored
View File

@ -50,7 +50,8 @@ type HTTPError struct {
// Auth defines the authentication interface used to get some auth thing
type Auth interface {
AuthDummy()
// Most of the time, we need an ID from the auth object only. Having this method saves the need to cast it.
GetID() int64
}
// Authprovider is a holder for the implementation of an authprovider by the application

2
vendor/modules.txt vendored
View File

@ -1,4 +1,4 @@
# code.vikunja.io/web v0.0.0-20190628071027-b5c16e24b0a7
# code.vikunja.io/web v0.0.0-20190628075253-b457b5a1a332
code.vikunja.io/web
code.vikunja.io/web/handler
# github.com/BurntSushi/toml v0.3.1