Fix various issues in the frontend (fix #197 & fix #192) #200

Merged
cami merged 5 commits from frontend/fix-paste-errormessage into main 2021-07-22 23:07:21 +00:00
3 changed files with 2 additions and 6 deletions
Showing only changes of commit 90e77bf450 - Show all commits

View file

@ -10,7 +10,6 @@ export default function BehaviorNormal(props) {
Passwort eingeben. Verhalten Sie sich einfach so, als ob Sie sich
normalerweise anmelden.
</p>
{console.log("props", props)}
<GeneratedPassword genPassword={props.genPassword} />
</>
);

View file

@ -11,7 +11,6 @@ export default function GeneratedPassword(props) {
<>
<p onCopy={handleOnCopyEvent}>
Das Passwort für diese Situation lautet:{" "}
{console.log("component genpw, genpassword", props.genPassword)}
<span className="generated-password">{props.genPassword}</span>
</p>
</>

View file

@ -73,7 +73,6 @@ export default function Study() {
const handleOnPasteEvent = (e) => {
e.preventDefault();
console.log("paste not allowed");
return false;
};
@ -88,7 +87,6 @@ export default function Study() {
response.json().then((resp) => {
console.log(resp.random_password);
setGenPassword(resp.random_password);
console.log("rcv pw; print genPassword", genPassword);
});
});
};
@ -165,7 +163,7 @@ export default function Study() {
onChange={handlePasswordChange}
InputType="password"
InputName="Passwort"
InputPlaceHolder="Benutzername"
InputPlaceHolder="Passwort"
onPaste={handleOnPasteEvent}
/>
<SubmitField
@ -195,7 +193,7 @@ export default function Study() {
onChange={handlePasswordChange}
InputType="password"
InputName="Passwort"
InputPlaceHolder="Benutzername"
InputPlaceHolder="Passwort"
onPaste={handleOnPasteEvent}
/>
<SubmitField