Hello Raphael,

can you try that:

in /usr/local/pf/

patch -p1 --dry-run < status.diff

and if there is no error:

patch -p1 < status.diff

and restart packetfence.

Let me know if it works, i will push it in the main code.

Regards

Fabrice



Le 2018-01-15 à 18:01, Raphael Dias via PacketFence-users a écrit :
> Hi
>
> So I am. I still see this in 7.3.0. Is there any way to change this
> message? The only way I see is to modify error.html with a generic
> possible cause.
>
> Thanks
>
> On Mon, Jun 20, 2016 at 5:00 AM, Darwish O. Alhelo <alh...@gmail.com
> <mailto:alh...@gmail.com>> wrote:
>
>     Dear
>
>     after upgrading fro 5.3 to 6.03 , i noticed that the error message
>     saying "you have exceeded number of devices you can register"  do
>     not appears to the users trying to add new devices mor than i
>     allowed ,they have different misleading message "couldn't 
>     register your device, Please contact local support"
>
>     is there a way  to fix this
>
>     -- 
>     Best Regards
>     Darwish
>
>     
> ------------------------------------------------------------------------------
>     What NetFlow Analyzer can do for you? Monitors network bandwidth
>     and traffic
>     patterns at an interface-level. Reveals which users, apps, and
>     protocols are
>     consuming the most bandwidth. Provides multi-vendor support for
>     NetFlow,
>     J-Flow, sFlow and other flows. Make informed decisions using
>     capacity planning
>     reports. http://sdm.link/zohomanageengine
>     <http://sdm.link/zohomanageengine>
>     _______________________________________________
>     PacketFence-users mailing list
>     PacketFence-users@lists.sourceforge.net
>     <mailto:PacketFence-users@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/packetfence-users
>     <https://lists.sourceforge.net/lists/listinfo/packetfence-users>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-users

-- 
Fabrice Durand
fdur...@inverse.ca ::  +1.514.447.4918 (x135) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org) 

diff --git a/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Root.pm b/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Root.pm
index 543f135..7453953 100644
--- a/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Root.pm
+++ b/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Root.pm
@@ -286,7 +286,11 @@ sub apply_new_node_info {
         return $TRUE;
     }
     else {
-        $self->app->error("Couldn't register your device. Please contact your local support staff.");
+        if ($status) {
+            $self->app->error($status_msg);
+        } else {
+            $self->app->error("Couldn't register your device. Please contact your local support staff.");
+        }
         $self->detach();
     }
 }
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to