added view password (#3555)
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
1111fb0a50
commit
cce4fd8f4c
1 changed files with 4 additions and 4 deletions
|
@ -21,6 +21,7 @@ import { useRealm } from "../context/realm-context/RealmContext";
|
||||||
import { useWhoAmI } from "../context/whoami/WhoAmI";
|
import { useWhoAmI } from "../context/whoami/WhoAmI";
|
||||||
import { emailRegexPattern } from "../util";
|
import { emailRegexPattern } from "../util";
|
||||||
import { AddUserEmailModal } from "./AddUserEmailModal";
|
import { AddUserEmailModal } from "./AddUserEmailModal";
|
||||||
|
import { PasswordInput } from "../components/password-input/PasswordInput";
|
||||||
import "./realm-settings-section.css";
|
import "./realm-settings-section.css";
|
||||||
|
|
||||||
type RealmSettingsEmailTabProps = {
|
type RealmSettingsEmailTabProps = {
|
||||||
|
@ -372,16 +373,15 @@ export const RealmSettingsEmailTab = ({
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<PasswordInput
|
||||||
type="password"
|
|
||||||
id="kc-password"
|
id="kc-password"
|
||||||
data-testid="password-input"
|
data-testid="password-input"
|
||||||
name="smtpServer.password"
|
name="smtpServer.password"
|
||||||
ref={register({ required: true })}
|
aria-label={t("password")}
|
||||||
placeholder="Login password"
|
|
||||||
validated={
|
validated={
|
||||||
errors.smtpServer?.password ? "error" : "default"
|
errors.smtpServer?.password ? "error" : "default"
|
||||||
}
|
}
|
||||||
|
ref={register({ required: true })}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in a new issue