diff --git a/src/components/user/Login.vue b/src/components/user/Login.vue
index 1c403198..13607c43 100644
--- a/src/components/user/Login.vue
+++ b/src/components/user/Login.vue
@@ -9,13 +9,13 @@
@@ -43,10 +43,6 @@
export default {
data() {
return {
- credentials: {
- username: '',
- password: ''
- },
errorMsg: '',
confirmedEmailSuccess: false,
loading: false
@@ -79,9 +75,12 @@
submit() {
this.loading = true
this.errorMsg = ''
- let credentials = {
- username: this.credentials.username,
- password: this.credentials.password
+ // Some browsers prevent Vue bindings from working with autofilled values.
+ // To work around this, we're manually getting the values here instead of relying on vue bindings.
+ // For more info, see https://kolaente.dev/vikunja/frontend/issues/78
+ const credentials = {
+ username: this.$refs.username.value,
+ password: this.$refs.password.value,
}
auth.login(this, credentials, 'home')