global

def require_current_password

def require_current_password
  if authenticated? && password_expired? && password_change_needed_redirect != request.path_info
    set_redirect_error_flash password_expiration_error_flash
    redirect password_change_needed_redirect
  end
end