Skip to content

Commit ac3bc6a

Browse files
committed
Enhance password input in Login.vue to toggle visibility and update mix-manifest.json for app.js hash
1 parent 292bf06 commit ac3bc6a

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/app.js": "/app.js?id=99b12bb9abfb364d448985b5a096b42d",
2+
"/app.js": "/app.js?id=e9302d28af35de496929c7d89f1c890c",
33
"/ui.js": "/ui.js?id=592866a715b1c20b43fff6ca7980b279",
44
"/manifest.js": "/manifest.js?id=3267e5c99fd7b729e2f38ec55b50397d",
55
"/app.css": "/app.css?id=0864a7b81f5021e62095c1bd570dedb5",

resources/js/pages/Login.vue

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,22 @@
3333

3434
<div class="mb-6">
3535
<label class="block mb-2" for="password">{{ __('Password') }}</label>
36-
<input
37-
v-model="form.password"
38-
class="w-full form-control form-input form-control-bordered"
39-
:class="{
40-
'form-control-bordered-error': form.errors.has('password'),
41-
}"
42-
id="password"
43-
type="password"
44-
name="password"
45-
autocomplete="current-password"
46-
required
47-
/>
48-
36+
<div class="flex items-center">
37+
<input
38+
v-model="form.password"
39+
class="w-full form-control form-input form-control-bordered"
40+
:class="{
41+
'form-control-bordered-error': form.errors.has('password'),
42+
}"
43+
id="password"
44+
:type="showPassword ? 'text' : 'password'"
45+
name="password"
46+
autocomplete="current-password"
47+
required
48+
/>
49+
<Button variant="outline" :icon="showPassword ? 'eye-slash' : 'eye'" @click="togglePasswordVisibility" class="ml-1">
50+
</Button>
51+
</div>
4952
<HelpText class="mt-2 text-red-500" v-if="form.errors.has('password')">
5053
{{ form.errors.first('password') }}
5154
</HelpText>
@@ -125,10 +128,16 @@ export default {
125128
year: new Date().getFullYear(),
126129
remember: false,
127130
}),
131+
showPassword: false,
128132
}
129133
},
130134
131135
methods: {
136+
137+
togglePasswordVisibility() {
138+
this.showPassword = !this.showPassword
139+
},
140+
132141
async attempt() {
133142
try {
134143
const { redirect, two_factor } = await this.form.post(

0 commit comments

Comments
 (0)