Hello Jes,

try that:

https://github.com/inverse-inc/packetfence/compare/feature/defined_sponsor.diff


Regards

Fabrice



Le 2017-03-17 à 08:30, Jes Kasper Klittum a écrit :
> Hi Fabrice,
>  
> Sorry for not replying directly to your email, but emails from the dev
> list has not been sent to me for some reason. I can only read your
> reply in the archives. That is also the reason my original mail has
> been sent to the list multiple times.
>  
> I have looked at the github link, but I am afraid my knowledge of Perl
> is rather limited, so I have no idea how to achieve what I would like
> to do.
>  
> Any chance you could help me out, by providing a signin.html that
> hides sponsor email, or with this – better - suggestion?
>  
> Br,
>  
> Jes
>  
>  
>  
>  
>  
> Hi Jes,
>  
> IMO the better thing to do is to define a email address directly in the
> sponsor module and hide it on the portal.
>  
> Something like that but for sponsor email
> (https://github.com/inverse-inc/packetfence/pull/1810/files)
>  
> Regards
>  
> Fabrice
>
>  
>
>  
>
> *Fra:*Jes Kasper Klittum
> *Sendt:* 15. marts 2017 10:51
> *Til:* 'packetfence-devel@lists.sourceforge.net'
> <packetfence-devel@lists.sourceforge.net>
> *Emne:* Prefill sponsor, and hide field from registration form
>
>  
>
> Hey Devs,
>
>  
>
> In my portal module, I am using two sponsor based authentication
> modules – one for visitors which require the visitor to enter a
> sponsors email, and one for employees which should not require the
> user to enter the sponsor email, but requires a custom field.
>
>  
>
> Visitor module works as it should, but the employee guest registration
> needs a bit of work.
>
>  
>
> What I want to achieve is:
>
>  
>
> If the form contains the mandatory field “custom_field_9”, then the
> sponsor email field should be hidden on the form, and prepopulated
> with an email address. This way, when an employee wants to register a
> device, an email will just be sent to IT to approve the access.
>
>  
>
> I have tried modifying signin.html, but I am not very strong in HTML
> or perl. Any help to achieve the above would be greatly appreciated.
>
>  
>
> Med venlig hilsen / Best regards,
>
> *BISCA A/S*
>
> * *
>
> *Jes Kasper Klittum*
>
> Head of IT
>
>  
>
> Ahornvej 1,
>
> DK-4780 Stege
>
>  
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> PacketFence-devel mailing list
> PacketFence-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-devel

-- 
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) 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

Reply via email to