ref: 9e5bfc39510b10f28ccdca26223b0271071711cd
parent: f34029dedce9172fa3d5a9a86169c3b883202483
author: halfwit <michaelmisch1985@gmail.com>
date: Tue Nov 5 11:42:45 PST 2019
Return errors, not the other thing
binary files /dev/null b/.DS_Store differ
--- a/router/plugins.go
+++ b/router/plugins.go
@@ -1,10 +1,11 @@
package router
//var pluginCache map[string]*plugin
+
// ValidatePlugins - Run through each plugin
// make sure that its mapping isn't redundant with any other
// Make sure the code runs accurately without error
-func ValidatePlugins() []string {
- errs := []string{}
+func ValidatePlugins() []error {
+ errs := []error{}
return errs
}
--- a/router/run.go
+++ b/router/run.go
@@ -145,7 +145,7 @@
if !ok1 || !ok2 || status != "true" {
status = "false"
}
- if !ok3 {
+ if !ok {
role = db.GuestAuth
}
return user, status, us, role