Commit 46b3c404 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 5c98bd6f
...@@ -36,7 +36,7 @@ async function isAuthUser(user, pass, cb) { ...@@ -36,7 +36,7 @@ async function isAuthUser(user, pass, cb) {
} }
async function radius(user, pass) { async function radius(user, pass) {
let a = await shell.exec('radtest ' + user + ' ' + pass + ' ' + '172.17.0.1 0 testing123', {silent: true}).stdout; let a = await shell.exec('radtest ' + user + ' ' + pass + ' ' + '109.237.27.107 0 testing123', {silent: true}).stdout;
return a.includes("Access-Accept") === true return a.includes("Access-Accept") === true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment