Skip to content

Commit

Permalink
feat: added show or hide password on signup page
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 20, 2022
1 parent e8bf122 commit 6357f40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/apps/ui/components/shared/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default {

<!-- password -->
<div class="mb-3">
<div class="d-flex gap-2 align-items-center flex-row">
<div class="d-flex gap-2">
<label for="password" class="form-label me-2">Password</label>
<div role="button" @click="showPassword = !showPassword" style="cursor: pointer">
<i v-if="showPassword" class="bi bi-eye-slash"></i>
Expand Down
11 changes: 9 additions & 2 deletions src/apps/ui/components/shared/Signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@

<!-- password -->
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<div class="d-flex gap-2">
<label for="password" class="form-label me-2">Password</label>
<div role="button" @click="showPassword = !showPassword" style="cursor: pointer">
<i v-if="showPassword" class="bi bi-eye-slash"></i>
<i v-else class="bi bi-eye"></i>
</div>
</div>
<input
v-model="password"
type="password"
:type="showPassword ? 'text' : 'password'"
class="form-control"
id="password"
:disabled="loading"
Expand Down Expand Up @@ -149,6 +155,7 @@ export default {
email: '',
password: '',
checkbox: '',
showPassword: false,
loading: false,
loginLink: '/login',
alert: {
Expand Down

0 comments on commit 6357f40

Please sign in to comment.