Skip to content

"Invalid Username or Password" error is not displaying when ShouldChangePasswordOnNextLogin is true #25481

@vipulbuoyancy

Description

@vipulbuoyancy

Is there an existing issue for this?

  • I have searched the existing issues

Description

When I create a new user with the ShouldChangePasswordOnNextLogin flag true, so user will have to change the password on next login, but if user enter the wrong password before going to change password screen. the application is not showing the error message that Incoorect Username or Password, instead it stays on login screen by clearing entered login details.

Reproduction Steps

  1. Login as an Tenant Admin.
  2. Create New user with the default password like (Admin@123), keep the checkbox enable for Force Chnage Password on First login from the settings
  3. Logout from existing user
  4. Enter the details of the newly created user, but type wrong password like Admin123
  5. It should display the error "Incorrect username or password"

Expected behavior

It should show the error message on login page, "Incorrect username or password."

Actual behavior

It is not displaying the error message and clears the user data from the page.

Regression?

I have even tried overriding the login page, including the model, but it looks like the view is being rendered twice. The error message appears correctly during the first render, but when the page renders a second time, the error messages are getting cleared out.

Known Workarounds

No workaround as of now

Version

9.0

User Interface

Angular

Database Provider

EF Core (Default)

Tiered or separate authentication server

Separate Auth Server

Operation System

Windows (Default)

Other information

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions