Skip to content

Force profile completion : only redirects page reload, not ajax requests #84

Description

@d-damien

Bug Report

Current Behavior
The option "Force user to complete profile" only works when the browser reloads the page. In particular it works the first time right after sign up, but not with subsequent browsing of the forum, and the user can even submit posts.

Steps to Reproduce

  1. Create a new user. You are redirected to their profile as expected.
  2. But you can still browse around => problem
  3. Go to another page and Ctrl+R. You are redirected to their profile as expected.

Expected Behavior
The option says "Force user to complete profile". It implies the user cannot really do anything forum-related before they complete their profile. They should not be able to post or to go to another page than their profile once connected.

Environment

  • Flarum version: 1.8.5
  • Extension version: 2.1.4
  • Webserver: Apache
  • Hosting environment: shared
  • PHP version: 8.2
  • Browser: Firefox

This was done with all other extensions disabled.

Possible solution(s)
Find a way to apply middleware to ajax request ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions