lib/authenticated_members_system.rb
# Refresh the cookie auth token if it exists, create it otherwise
Refresh the cookie auth token if it exists, create it otherwise
Refresh the cookie auth token if it exists create it otherwise
def handle_remember_member_cookie!(new_cookie_flag)
      return unless @current_member
      case
      when valid_remember_member_cookie? then @current_member.refresh_token 
      when new_cookie_flag        then @current_member.remember_me 
      else                             @current_member.forget_me
      end
      send_remember_member_cookie!
    end
def handle_remember_member_cookie! ( new_cookie_flag ) return unless @current_member case when valid_remember_member_cookie? then @current_member . refresh_token when new_cookie_flag then @current_member . remember_me else @current_member . forget_me end send_remember_member_cookie! end
Refresh the cookie auth token if it exists, create it otherwise
Refresh the cookie auth token if it exists create it otherwise
# keeping same expiry date
new_cookie_flag
<not_specific>