added view password (#3555)

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2022-10-12 09:22:30 +01:00 committed by GitHub
parent 1111fb0a50
commit cce4fd8f4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ import { useRealm } from "../context/realm-context/RealmContext";
import { useWhoAmI } from "../context/whoami/WhoAmI";
import { emailRegexPattern } from "../util";
import { AddUserEmailModal } from "./AddUserEmailModal";
import { PasswordInput } from "../components/password-input/PasswordInput";
import "./realm-settings-section.css";
type RealmSettingsEmailTabProps = {
@ -372,16 +373,15 @@ export const RealmSettingsEmailTab = ({
/>
}
>
<KeycloakTextInput
type="password"
<PasswordInput
id="kc-password"
data-testid="password-input"
name="smtpServer.password"
ref={register({ required: true })}
placeholder="Login password"
aria-label={t("password")}
validated={
errors.smtpServer?.password ? "error" : "default"
}
ref={register({ required: true })}
/>
</FormGroup>
</>