mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: hide password login when it's disabled (#3851)
https://linear.app/unleash/issue/2-1085/bug-password-based-login-still-shows-on-the-login-page-even-if Fixes a regression introduced with the changes related with #3633 where we still show the password login even though it's disabled. --------- Co-authored-by: Thomas Heartman <thomas@getunleash.io>
This commit is contained in:
parent
540c5f2cc5
commit
ab4ff29407
@ -374,6 +374,7 @@ describe('Error serialization special cases', () => {
|
||||
type: 'password',
|
||||
path: `base-path/auth/simple/login`,
|
||||
message: 'You must sign in order to use Unleash',
|
||||
defaultHidden: true,
|
||||
options: [
|
||||
{
|
||||
type: 'google',
|
||||
|
@ -39,6 +39,7 @@ class AuthenticationRequired extends UnleashError {
|
||||
...super.toJSON(),
|
||||
path: this.path,
|
||||
type: this.type,
|
||||
defaultHidden: this.defaultHidden,
|
||||
...(this.options ? { options: this.options } : {}),
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user