forked from cockpit/cockpit
fix compilation
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=90
This commit is contained in:
parent
ccac76747d
commit
7d66a39dab
@ -38,7 +38,17 @@ Index: cockpit/pkg/lib/cockpit-components-password.jsx
|
|||||||
if (value) {
|
if (value) {
|
||||||
password_quality(value)
|
password_quality(value)
|
||||||
.catch(ex => {
|
.catch(ex => {
|
||||||
@@ -84,6 +88,7 @@ export const PasswordFormFields = ({
|
@@ -73,7 +77,9 @@ export const PasswordFormFields = ({
|
||||||
|
setPasswordStrength("");
|
||||||
|
setPasswordMessage("");
|
||||||
|
}
|
||||||
|
+*/
|
||||||
|
}
|
||||||
|
+/*
|
||||||
|
|
||||||
|
let variant;
|
||||||
|
if (passwordStrength === "")
|
||||||
|
@@ -84,6 +90,7 @@ export const PasswordFormFields = ({
|
||||||
variant = "warning";
|
variant = "warning";
|
||||||
else
|
else
|
||||||
variant = "danger";
|
variant = "danger";
|
||||||
@ -46,7 +56,7 @@ Index: cockpit/pkg/lib/cockpit-components-password.jsx
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -101,16 +106,7 @@ export const PasswordFormFields = ({
|
@@ -101,16 +108,7 @@ export const PasswordFormFields = ({
|
||||||
fieldId={idPrefix + "-pw1"}>
|
fieldId={idPrefix + "-pw1"}>
|
||||||
<TextInput className="check-passwords" type="password" id={idPrefix + "-pw1"}
|
<TextInput className="check-passwords" type="password" id={idPrefix + "-pw1"}
|
||||||
autocomplete="new-password" value={password} onChange={onPasswordChanged} />
|
autocomplete="new-password" value={password} onChange={onPasswordChanged} />
|
||||||
|
Loading…
Reference in New Issue
Block a user