Clean up some things
This commit is contained in:
parent
31513f4824
commit
90e77bf450
3 changed files with 2 additions and 6 deletions
|
@ -10,7 +10,6 @@ export default function BehaviorNormal(props) {
|
||||||
Passwort eingeben. Verhalten Sie sich einfach so, als ob Sie sich
|
Passwort eingeben. Verhalten Sie sich einfach so, als ob Sie sich
|
||||||
normalerweise anmelden.
|
normalerweise anmelden.
|
||||||
</p>
|
</p>
|
||||||
{console.log("props", props)}
|
|
||||||
<GeneratedPassword genPassword={props.genPassword} />
|
<GeneratedPassword genPassword={props.genPassword} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -11,7 +11,6 @@ export default function GeneratedPassword(props) {
|
||||||
<>
|
<>
|
||||||
<p onCopy={handleOnCopyEvent}>
|
<p onCopy={handleOnCopyEvent}>
|
||||||
Das Passwort für diese Situation lautet:{" "}
|
Das Passwort für diese Situation lautet:{" "}
|
||||||
{console.log("component genpw, genpassword", props.genPassword)}
|
|
||||||
<span className="generated-password">{props.genPassword}</span>
|
<span className="generated-password">{props.genPassword}</span>
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -73,7 +73,6 @@ export default function Study() {
|
||||||
|
|
||||||
const handleOnPasteEvent = (e) => {
|
const handleOnPasteEvent = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
console.log("paste not allowed");
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -88,7 +87,6 @@ export default function Study() {
|
||||||
response.json().then((resp) => {
|
response.json().then((resp) => {
|
||||||
console.log(resp.random_password);
|
console.log(resp.random_password);
|
||||||
setGenPassword(resp.random_password);
|
setGenPassword(resp.random_password);
|
||||||
console.log("rcv pw; print genPassword", genPassword);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -165,7 +163,7 @@ export default function Study() {
|
||||||
onChange={handlePasswordChange}
|
onChange={handlePasswordChange}
|
||||||
InputType="password"
|
InputType="password"
|
||||||
InputName="Passwort"
|
InputName="Passwort"
|
||||||
InputPlaceHolder="Benutzername"
|
InputPlaceHolder="Passwort"
|
||||||
onPaste={handleOnPasteEvent}
|
onPaste={handleOnPasteEvent}
|
||||||
/>
|
/>
|
||||||
<SubmitField
|
<SubmitField
|
||||||
|
@ -195,7 +193,7 @@ export default function Study() {
|
||||||
onChange={handlePasswordChange}
|
onChange={handlePasswordChange}
|
||||||
InputType="password"
|
InputType="password"
|
||||||
InputName="Passwort"
|
InputName="Passwort"
|
||||||
InputPlaceHolder="Benutzername"
|
InputPlaceHolder="Passwort"
|
||||||
onPaste={handleOnPasteEvent}
|
onPaste={handleOnPasteEvent}
|
||||||
/>
|
/>
|
||||||
<SubmitField
|
<SubmitField
|
||||||
|
|
Loading…
Reference in a new issue