mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-12-27 18:14:50 +00:00
fix bug
This commit is contained in:
@@ -313,7 +313,7 @@ func (e mainEnv) enforceAuth(w http.ResponseWriter, r *http.Request, event *audi
|
||||
event.Identity = authResult.name
|
||||
}
|
||||
if authResult.ttype == "login" {
|
||||
if authResult.token == event.Record {
|
||||
if event != nil && authResult.token == event.Record {
|
||||
return authResult.ttype
|
||||
// else go down in code
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user