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 { 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>
</> </>