add snapshot

This commit is contained in:
DeniskaRediska committed 2019-11-15 19:18:47 +03:00
1 parent 0e3c14d099
commit 3d2cee1ae8
18 files changed
+521 -87

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ func Do(ctx *fasthttp.RequestCtx) (int32, error) {
)
if len(appToken) == 0 {
return 0, createError(codes.Unauthenticated)
} else if config.GetRemote().(*conf.RemoteConfig).Secrets.VerifyAppToken {
} else if config.GetRemote().(*conf.RemoteConfig).TokensSetting.ApplicationVerify {
if appId, err = verifyToken.Application(string(appToken)); err != nil || appId == 0 {
return 0, createError(codes.Unauthenticated, "invalid token")
}