mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
Blue Turtle - Minor Additions and Bug Fixes
This commit is contained in:
parent
c7e70c03e8
commit
bc01b19714
6 changed files with 84 additions and 15 deletions
|
@ -377,11 +377,15 @@ module.exports = function(s,config,lang,app){
|
|||
}
|
||||
if(r.details.sub){
|
||||
s.sqlQuery('SELECT details FROM Users WHERE ke=? AND details NOT LIKE ?',[r.ke,'%"sub"%'],function(err,rr) {
|
||||
rr=rr[0];
|
||||
rr.details=JSON.parse(rr.details);
|
||||
r.details.mon_groups=rr.details.mon_groups;
|
||||
req.resp.details=JSON.stringify(r.details);
|
||||
req.factorAuth()
|
||||
if(rr && rr[0]){
|
||||
rr=rr[0];
|
||||
rr.details=JSON.parse(rr.details);
|
||||
r.details.mon_groups=rr.details.mon_groups;
|
||||
req.resp.details=JSON.stringify(r.details);
|
||||
req.factorAuth()
|
||||
}else{
|
||||
failedAuthentication(req.body.function)
|
||||
}
|
||||
})
|
||||
}else{
|
||||
req.factorAuth()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue