Skip to content

Commit

Permalink
Fixed error for some users when trying to login + added eror messages…
Browse files Browse the repository at this point in the history
… when login fails
  • Loading branch information
elrumo committed Jun 28, 2021
1 parent d6c54b8 commit 44f78df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 9 additions & 10 deletions website/macos-big-sur-icons/src/components/LoginDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
Password must contain a number, a capital letter and be more than 6 characters long.
</p>
<p v-if="userInfo.step == 2 && userInfo.hasLoggedIn" class="coral-Body--XS opacity-60 f-w-400 p-t-10">
Problems signing in? <a @click="resetPassword" class="coral-link">Reset password</a>
Problems signing in? <a @click="resetPassword" class="coral-link pointer">Reset password</a>
</p>
</div>

Expand Down Expand Up @@ -559,19 +559,18 @@ export default {
let parent = this;
parent.isLoading = true;
let email = parent.userInfo.email
const user = await Parse.User.requestPasswordReset(email)
user
Parse.User.requestPasswordReset(email).then(()=>{
parent.showToast({
id: "toastMessage",
message: "Check your email",
variant: "success"
})
})
Parse.Cloud.run("firstTimeUser", {email: email}).then((result)=>{
parent.userInfo.passwordResetSent = true
parent.emailSentAt = new Date().getTime()// Set time the email was sent at
parent.isLoading = false;
parent.showToast({
id: "toastMessage",
message: "✅ Check your email",
variant: "success"
})
}).catch((error) => {
console.log("firstTimeUser error: ", error);
Expand Down
4 changes: 4 additions & 0 deletions website/macos-big-sur-icons/src/components/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,10 @@ coral-buttongroup button{
transform: translateY(-50%);
}

.pointer{
cursor: pointer !important;
}

.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}
Expand Down

0 comments on commit 44f78df

Please sign in to comment.