Hi List,

i need to expire the prepaid card after three months of first login. after reading mail achieves, i was able to figured out that i need to use "Expire-After"  FR attribute and value in seconds. i was bit of unclear how to bring the module in to the action because i am unable to locate "Expire-After" attribute to users (Through Daloradius). Someone please help ...

# Default Module Came With FR v2.2

sqlcounter expire_on_login {
        counter-name = Expire-After-Initial-Login
        check-name = Expire-After
        sqlmod-inst = sql
        key = User-Name
        reset = never
        query = "SELECT TIME_TO_SEC(TIMEDIFF(NOW(), acctstarttime)) \
                 FROM radacct \
                 WHERE UserName='%{${key}}' \
                 ORDER BY acctstarttime \
                 LIMIT 1;"
}


Thanks / Regards

RM --