Skip to content
Snippets Groups Projects
Unverified Commit 8fa2d70e authored by Phie's avatar Phie Committed by Roeland Jago Douma
Browse files

adding toggle password to be able to see it


Signed-off-by: default avatarPhie <phie@phie.ovh>
parent 6fed189a
No related branches found
No related tags found
No related merge requests found
......@@ -228,6 +228,15 @@ input[type='email'] {
border: none;
font-weight: normal;
}
input[type='password'].password-with-toggle, input[type='text'].password-with-toggle {
width: 219px;
padding-right: 40px;
}
.toggle-password {
position: absolute;
top: 17px;
right: 20px;
}
input.login {
width: 260px;
height: 50px;
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -65,7 +65,8 @@
<p class="groupbottom"
:class="{shake: invalidPassword}">
<input type="password"
<input :type="passwordInputType"
class="password-with-toggle"
name="password"
id="password"
ref="password"
......@@ -75,6 +76,9 @@
required>
<label for="password"
class="infield">{{ t('Password') }}</label>
<a href="#" @click.stop.prevent="togglePassword" class="toggle-password">
<img :src="OC.imagePath('core', 'actions/toggle.svg')"/>
</a>
</p>
<div id="submit-wrapper">
......@@ -162,6 +166,7 @@
timezoneOffset: (-new Date().getTimezoneOffset() / 60),
user: this.username,
password: '',
passwordInputType: 'password',
}
},
computed: {
......@@ -186,6 +191,14 @@
}
},
methods: {
togglePassword () {
if(this.passwordInputType === 'password'){
this.passwordInputType = 'text'
}
else{
this.passwordInputType = 'password'
}
},
updateUsername () {
this.$emit('update:username', this.user)
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment