def login_users_to_authorized_keys(new_users)
      now = Time.now

      user_lines = []

      new_users.each do |u|
        if u.expires_at.nil? || u.expires_at > now
          u.public_keys.each do |k|
            user_lines << "#{get_key_prefix(u.username, u.common_name, u.uuid, u.superuser, u.profile_data)} #{k}"
          end
        end
      end

      return user_lines.sort
    end
def login_users_to_authorized_keys(new_users)
      now = Time.now

      user_lines = []

      new_users.each do |u|
        if u.expires_at.nil? || u.expires_at > now
          u.public_keys.each do |k|
            user_lines << "#{get_key_prefix(u.username, u.common_name, u.uuid, u.superuser, u.profile_data)} #{k}"
          end
        end
      end

      return user_lines.sort
    end
Given a list of LoginUsers, compute an authorized_keys file that encompasses all
 of the users and has a suitable options field that invokes rs_thunk with the right
 command-line params for that user. Omit any users who are expired.

 == Parameters:
 @param [Array<LoginUser>] array of updated users list

 == Returns:
 @return [Array<String>] public key lines of user accounts