Skip to content

Commit

Permalink
added password info
Browse files Browse the repository at this point in the history
  • Loading branch information
Csaern committed Dec 2, 2024
1 parent 0b0eb9d commit 56500cb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions client/src/components/Login/RegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const labelPublicName = ref(localize("Public name"));
const labelEmailAddress = ref(localize("Email address"));
const labelConfirmPassword = ref(localize("Confirm password"));
const labelSubscribe = ref(localize("Stay in the loop and join the galaxy-announce mailing list."));
const showPasswordGuidelines: Ref<boolean> = ref(false);
const custosPreferred = computed(() => {
return props.enableOidc && props.preferCustosLogin;
Expand Down Expand Up @@ -207,6 +209,10 @@ async function submit() {
autocomplete="new-password"
required
/>
<!-- password guidelines -->
<BButton variant="info" class="mt-3" @click="showPasswordGuidelines = true">
Password Guidelines
</BButton>
<!-- strength bar -->
<div v-if="passwordStrength !== null" class="password-strength-bar-container mt-2">
<div
Expand Down Expand Up @@ -287,6 +293,22 @@ async function submit() {
</BForm>
</div>

<div>
<BModal v-model="showPasswordGuidelines" title="Tips for a secure Password">
<p>A good password should meet the following criteria:</p>
<ul>
<li>At east 12 characters long.</li>
<li>Use uppercase and lowercase letters.</li>
<li>At least one number and one special character.</li>
<li>Avoid common passwords like <code>123456</code> or <code>password</code>.</li>
<li>No repeated patterns like <code>aaaa</code> or <code>123123</code>.</li>
</ul>
<template v-slot:modal-footer>
<BButton variant="secondary" @click="showPasswordGuidelines = false">Schließen</BButton>
</template>
</BModal>
</div>

<div v-if="termsUrl" class="col position-relative embed-container">
<iframe title="terms-of-use" :src="termsUrl" frameborder="0" class="terms-iframe"></iframe>
<div v-localize class="scroll-hint">↓ Scroll to review ↓</div>
Expand Down

0 comments on commit 56500cb

Please sign in to comment.