Open Closed

Tenant Login issue #3574


User avatar
0
Merna created

Hello, I have an issue with my application,

  • Steps to reproduce the issue:" 1-login to a specific tenant 2-change from the administration area tenant status from active to passive 3-try to login again directly after changing the status and user can login successfully although the tenant status was modified in the database to be passive, but the application still displays active status unless at least an hour passes.

How could I fix it to have instant response when logging in ? Thanks in advance

Here is some information about my application

  • ABP Framework version: v5.1
  • UI type: MVC
  • DB provider: EF Core

6 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I will check this.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can't reproduce the problem, The cache will be invalid after the tenant changes.

  • User Avatar
    0
    Merna created

    Hello , I did used Update action in tenant repository but still identity cant cache the new status till at least an hours passes. so is there any other action I should call to trigger this event or is there a way to remove caching for tenants manually? cause I want an instant response from identity but it doesn't work as it should be.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you test this in a new template project?

  • User Avatar
    0
    Merna created

    Hello maliming, I've separated applications in my project ,so I've tried distributed cache and it works fine for me . please let know if you've a better idea about it.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I have nothing to add. : )

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38