Commit 44c53640 authored by Ray Bellis's avatar Ray Bellis

don't pass the secret to handlers

parent 161d5eff
......@@ -3,7 +3,7 @@
const RadiusServer = require('./lib/server');
const logic = {
auth: function(req, res, secret) {
auth: function(req, res) {
if (req.get('User-Name') == 'ray' &&
req.get('User-Password') == 'mypass')
{
......@@ -13,7 +13,7 @@ const logic = {
};
const defaults = {
auth: function(req, res, secret) {
auth: function(req, res) {
if (res.code.toString() === 'Access-Accept') {
if (res.get('Framed-IP-Address') === undefined) {
res.add('Framed-IP-Address', '255.255.255.254');
......
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