<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CP wit a password of the day]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">has anyone from the community build a captive Portal authentication method with Password of the day ? I would like to implement a solution with a list of Password for next 90 or 120 days with individual Passwords for each day.</p>
<p dir="auto">Has any had the same idea and found a good solution?</p>
<p dir="auto">Thanks &amp; Kind regards</p>
<p dir="auto">toga735</p>
]]></description><link>https://forum.netgate.com/topic/119192/cp-wit-a-password-of-the-day</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 16:58:41 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/119192.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Aug 2017 09:31:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CP wit a password of the day on Wed, 08 Nov 2017 21:39:28 GMT]]></title><description><![CDATA[<p dir="auto">We've done something similar using RADIUS and a custom CP page.</p>
<ul>
<li>cron creates a username and password</li>
<li>cron emails that username and password to a distribution list (could also use digital signage)</li>
<li>cron deletes the previous days password</li>
</ul>
]]></description><link>https://forum.netgate.com/post/734928</link><guid isPermaLink="true">https://forum.netgate.com/post/734928</guid><dc:creator><![CDATA[seanpearman]]></dc:creator><pubDate>Wed, 08 Nov 2017 21:39:28 GMT</pubDate></item><item><title><![CDATA[Reply to CP wit a password of the day on Wed, 16 Aug 2017 19:44:23 GMT]]></title><description><![CDATA[<p dir="auto">Just to expand on the answer a little more, now that I'm on my laptop and not my phone -</p>
<pre><code>$user_array = array ( 	1  =&gt; 'q1',
							2  =&gt; 'q2',
							3  =&gt; 'q3',
							4  =&gt; 'q4'
						);

function CurrentQuarter(){
     $n = date('n');
     if($n &lt; 4){
          return "1";
     } elseif($n &gt; 3 &amp;&amp; $n &lt;7){
          return "2";
     } elseif($n &gt;6 &amp;&amp; $n &lt; 10){
          return "3";
     } elseif($n &gt;9){
          return "4";
     }
}
$current_user = $user_array[CurrentQuarter()];
</code></pre>
<p dir="auto">Then as the "User" field, I did -</p>
]]></description><link>https://forum.netgate.com/post/716499</link><guid isPermaLink="true">https://forum.netgate.com/post/716499</guid><dc:creator><![CDATA[The Computer Guy]]></dc:creator><pubDate>Wed, 16 Aug 2017 19:44:23 GMT</pubDate></item><item><title><![CDATA[Reply to CP wit a password of the day on Wed, 16 Aug 2017 18:07:23 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I did something similar, customer wanted a quarterly password.</p>
<p dir="auto">I simply created four users, q1, q2, q3 &amp; q4</p>
<p dir="auto">Then on the portal page, a little php to work out the quarter number, username field is then a hidden field.</p>
<p dir="auto">It'll take you a while to add a user for each day though!</p>
]]></description><link>https://forum.netgate.com/post/716465</link><guid isPermaLink="true">https://forum.netgate.com/post/716465</guid><dc:creator><![CDATA[The Computer Guy]]></dc:creator><pubDate>Wed, 16 Aug 2017 18:07:23 GMT</pubDate></item></channel></rss>