I found place where I probably need to write some code responsible for
my feature.

At /vendor/hobo/hobo/lib/hobo there is method:
def login_required(user_model=nil)
    auth_model = user_model || User.default_user_model
    if current_user.guest?
        username, passwd = get_auth_data
        self.current_user = auth_model.authenticate(username, passwd)
|| nil if username && passwd && auth_model
    end
    if logged_in? && authorized? && (user_model.nil? ||
current_user.is_a?(user_model))
        true
    else
        access_denied(auth_model)
    end
end


So I believe that Inside second 'if' I need to check somehow his
password expiration date.
Something like:
 > if current_user.pass_expires > date.Now
If so - redirect to change password page.

How do you think of this idea?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to