File tree Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 (
You can’t perform that action at this time.
0 commit comments