Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
d-damien opened this issue Jun 10, 2024 · 0 comments
Open
Labels

Comments

@d-damien
Copy link

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 ?

@d-damien d-damien added the bug label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant