edit password

This commit is contained in:
supertiger1234 2019-08-05 20:10:11 +01:00
parent 0d70eb6b3c
commit 04e15c9dd9
3 changed files with 26 additions and 5 deletions

View file

@ -16,8 +16,8 @@
</div> </div>
<div class="change-list"> <div class="change-list">
<div <div
v-for="change in changelog" v-for="(change, index) in changelog"
:key="change.title" :key="index"
class="change" class="change"
> >
<div class="date"> <div class="date">

View file

@ -23,6 +23,11 @@
<div class="title">Current Password</div> <div class="title">Current Password</div>
<input type="password" autocomplete="new-password" @input="inputEvent('password', $event)" /> <input type="password" autocomplete="new-password" @input="inputEvent('password', $event)" />
</div> </div>
<div class="link" v-if="!resetPassword" @click="resetPassword = true">Reset Password</div>
<div class="outer-input" v-if="resetPassword">
<div class="title">New Password</div>
<input type="password" autocomplete="new-password" @input="inputEvent('new_password', $event)" />
</div>
</form> </form>
</div> </div>
@ -64,6 +69,7 @@ export default {
errors: null, errors: null,
requestSent: false, requestSent: false,
changed: false, changed: false,
resetPassword: false,
update: {} update: {}
}; };
}, },
@ -117,6 +123,7 @@ export default {
} }
this.errors = data.errors; this.errors = data.errors;
} else { } else {
this.resetPassword = false
this.update = {}; this.update = {};
} }
this.requestSent = false; this.requestSent = false;
@ -244,6 +251,15 @@ export default {
padding: 10px; padding: 10px;
align-self: center; align-self: center;
} }
.link {
user-select: none;
cursor: pointer;
margin-left: 35px;
}
.link:hover {
text-decoration: underline;
}
@media (max-width: 740px) { @media (max-width: 740px) {
.inner-content { .inner-content {
flex-direction: column; flex-direction: column;
@ -264,6 +280,10 @@ export default {
.outer-input { .outer-input {
margin-left: initial; margin-left: initial;
} }
.link {
margin: 0;
text-align: center;
}
} }
</style> </style>

View file

@ -16,12 +16,13 @@ const config = [
{ {
version: 5.8, version: 5.8,
title: "Bug fixes", title: "Bug fixes, Change password.",
shortTitle: "", shortTitle: "",
date: "04/08/2019", date: "05/08/2019",
headColor: "rgba(79, 38, 50, 0.77)", headColor: "rgba(255, 75, 127, 0.77)",
new: [ new: [
"Added more badges (Bug Catcher, Idea Queen)", "Added more badges (Bug Catcher, Idea Queen)",
"You can now change your password.",
], ],
fix: [ fix: [
"Fixed a bug where desktop notifications would show for your own messages.", "Fixed a bug where desktop notifications would show for your own messages.",