Skip to content

Commit

Permalink
password -> generated_password
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjuhuss committed Jul 1, 2024
1 parent 0f35f60 commit 7aa87dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/apis/eduidSignup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface SignupState {
};
tou: { completed: boolean; version?: string };
captcha: { completed: boolean };
credentials: { completed: boolean; password?: string };
credentials: { completed: boolean; generated_password?: string };
user_created: boolean;
}

Expand Down
8 changes: 5 additions & 3 deletions src/components/Signup/SignupUserCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ export function SignupConfirmPassword() {
id="copy-new-password"
ref={ref}
defaultValue={
signupState?.credentials.password ? formatPassword(signupState?.credentials.password) : ""
signupState?.credentials.generated_password
? formatPassword(signupState?.credentials.generated_password)
: ""
}
readOnly={true}
/>
<CopyToClipboard ref={ref} />
</mark>
<NewPasswordForm
suggested_password={signupState?.credentials.password}
suggested_password={signupState?.credentials.generated_password}
submitNewPasswordForm={submitNewPasswordForm}
submitButtonText={<FormattedMessage defaultMessage="Ok" description="ok button" />}
/>
Expand Down Expand Up @@ -103,7 +105,7 @@ export function SignupUserCreated(): JSX.Element {
</div>
<ConfirmUserInfo
email_address={signupState?.email.address as string}
new_password={formatPassword(signupState?.credentials.password)}
new_password={formatPassword(signupState?.credentials.generated_password)}
/>
<div className="buttons">
<EduIDButton id={idFinishedButton} buttonstyle="link" className="normal-case" type="submit">
Expand Down

0 comments on commit 7aa87dc

Please sign in to comment.