Commit 1c707645 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent ca715437
......@@ -36,7 +36,7 @@ async function isAuthUser(user, pass, cb) {
async function radius(user, pass) {
let a = await shell.exec('radtest ' + user + ' ' + pass + ' ' + '54.38.189.114 0 testing123', {silent: true}).stdout;
return a.includes("Access-Request") === 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