Open Closed

Tenant Login issue #3574


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)
  • 0
    maliming created
    Support Team

    hi

    I will check this.

  • 0
    maliming created
    Support Team

    hi

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

  • 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.

  • 0
    maliming created
    Support Team

    hi

    Can you test this in a new template project?

  • 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.

  • 0
    maliming created
    Support Team

    hi

    I have nothing to add. : )