Skip to content

Custom logout navigates without being called #2363

@SEGVeenstra

Description

@SEGVeenstra

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

The app should not navigate when the user cancels the logout dialog.

Expected Behavior

Even if the user cancels the dialog, the app still navigates to the login screen.

Steps to Reproduce

  1. Create a login page that uses custom login for authentication.
  2. Create a homepage for the when the user is logged in.
  3. Add a logout button
  4. Add the actions as follow:

Scherm­afbeelding 2024-02-19 om 11 20 13

  1. Test the app

Now whatever option you pick, cancel or logout, both will result in the app navigating to the login page.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT5Thc/1z4hOsdtK+KryccBvgiYvNl87aucziu1EFBQaJuvoB7QHPPekbXFJOum4TAk7CmeWmjsypq3Zud7DGMEnHxGrbLlq3bl2FA/xQlujRLrUPKrtREdREppWfHLG3KaO2wx9G7FaLXg+1F6bOOjJQgDaGJOwNjMnBPyjMt7+kVKUKxDsGiFrxidecCfn

Context

I need the user to stay on the homepage if they cancel the logout request so they can continue using the app.
Other aspects are working, like retaining the user loggedin state.

Visual documentation

Scherm­afbeelding 2024-02-19 om 11 20 13

Additional Info

No response

Environment

- FlutterFlow version: 4.1
- Platform: Mac
- Browser name and version: Chrome 120.0.6099.216 (Officiële build) (x86_64)
- Operating system and version affected:

Metadata

Metadata

Labels

Bugstatus: confirmedIssue has been reproduced and confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions