2015-05-28 - Re: [GRASE-Hotspot] Re: POC - Activate on First login (Or expiry from first login)

Header Data

From: Timothy White <ti***8@gmail.com>
Message Hash: 90835934c4514c98e793be4310ce3ca3375747d5c0cbe3fc7a1ec332bceba005
Message ID: <CAESLx0+AO8Wn0vABmA5bTcuj4WV9wFohrHZNjWwzZR2UfEVsKA@mail.gmail.com>
Reply To: <de9978fc-162e-400d-8d9c-499dc5b65e55@grasehotspot.org>
UTC Datetime: 2015-05-28 20:50:15 UTC
Raw Date: Fri, 29 May 2015 13:50:15 +1000

Raw message

Hi Marko

https://github.com/GraseHotspot/grase-www-portal/issues/39

You'll need the latest nightly version. In the Group settings, there will
be an "Expire after first login" field, which takes the same format as the
Expiry field. i.e. "+1 month" to have it expire a month after first login.

Regards

Tim

On Mon, Apr 13, 2015 at 5:32 AM, Marko Grdinic <mr***r@gmail.com> wrote:

> Hello, since this was quite a while ago, I have to ask where that option
> for the expiry after first login is. I can't find it.
>
> Typing 'Expire after first login' into the Expiry box just gives me an
> error.
>
> Do I have to install the nightly version for this feature, or is there
> some file I have to edit?
>
> Dana nedjelja, 28. rujna 2014. u 08:09:55 UTC+2, korisnik timwhite88
> napisao je:
>>
>> In the latest nightly I've added a GUI to this.
>> Set the Expire from first login string in the Group settings. Then any
>> new users created in that group will inherit that setting. A cronjob runs
>> regularly to ensure that we can have expiries longer than 1 month. (It'll
>> overwrite any existing expiry after their first login to match the Expire
>> after setting).
>>
>> This does mean you can have a long initial "activation" period, but then
>> after first use, a short expiry. Or, a short initial activation period, and
>> once activated a long expiry.
>>
>> Feedback on this feature would be good
>>
>> Tim
>>
>> On Sat, Sep 6, 2014 at 1:16 PM, Timothy White <ti***.@gmail.com> wrote:
>>
>>> As many of you have requested, it would be nice to have a voucher expire
>>> a certain amount of time from first use. For example, a 24 hour voucher
>>> from first use.
>>> https://github.com/GraseHotspot/grase-www-portal/issues/39
>>>
>>> I have hopefully worked out the initial part, which is the Perl module
>>> that Freeradius uses. I've created a new attribute called GRASE-ExpireAfter
>>> which takes a string describing the relative date/time of when the account
>>> should expire from first login. The format of the string should be the same
>>> as the current Expiry string we set in the groups, however it's parsed by
>>> the Perl parsedate function so may be slightly different. (
>>> http://search.cpan.org/~muir/Time-ParseDate-2013.1113/lib/Time/ParseDate.pm
>>> ).
>>>
>>> There is currently no GUI to the system, and there is no regular cronjob
>>> which will be needed for relative expiries greater than 1 month. (Currently
>>> due to how the archiving of the radacct table occurs, when the archiving
>>> occurs the required data is lost and the relative expiry will be reset).
>>>
>>> An example SQL command to give a relative expiry of 1 day from first use
>>> is:
>>>
>>> INSERT INTO `radius`.`radcheck` (`UserName`, `Attribute`, `op`, `Value`)
>>> VALUES ('tim', 'GRASE-ExpireAfter', ':=', '+1 day');
>>>
>>> If you are using nightlies, the grase-conf-freeradius package should
>>> update for you with "apt-get update; apt-get upgrade"
>>>
>>> If you are using the stable version, and wish to be daring, you should
>>> be able to manually install the grase-conf-freeradius package from the
>>> nighlies without breaking anything. Find the latest version at
>>> http://nightly.packages.grasehotspot.org/pool/main/g/grase-conf-freeradius/
>>> (anything after 1.9.4.9 should work). You'll need to manually install
>>> the libtime-modules-perl package first though.
>>>
>>> Let me know how the initial step works, and if I've broken anything
>>> without realising.
>>>
>>> Thanks
>>>
>>> Tim
>>>
>>
>>  --
> This mailing list is for the Grase Hotspot Project http://grasehotspot.org
> ---
> You received this message because you are subscribed to the Google Groups
> "Grase Hotspot" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gr***e@grasehotspot.org.
> To post to this group, send email to gr***t@grasehotspot.org.
> Visit this group at
> http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
> To view this discussion on the web visit
> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/de9978fc-162e-400d-8d9c-499dc5b65e55%40grasehotspot.org
> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/de9978fc-162e-400d-8d9c-499dc5b65e55%40grasehotspot.org?utm_medium=email&utm_source=footer>
> .
>

Thread

  • Return to May 2015

  • Return to “Timothy White <ti***8@gmail.com>

  • Unknown thread root

    • 2015-05-28 (Fri, 29 May 2015 13:50:15 +1000) - Re: [GRASE-Hotspot] Re: POC - Activate on First login (Or expiry from first login) - Timothy White <ti***8@gmail.com>