Skip to content

Commit 80adc99

Browse files
committed
Update Login.vue
1 parent bb7ca3b commit 80adc99

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/auth/Login.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@
8282
</template>
8383
<script>
8484
export default {
85-
mounted() {
85+
mounted () {
8686
this.$auth.logout();
8787
this.$auth.state("/realtime-database", "/login").then(user => {
8888
if (!user) {
8989
this.ready = false;
9090
}
9191
});
9292
},
93-
data() {
93+
data () {
9494
return {
9595
snackbar: false,
9696
email: "",
@@ -108,7 +108,7 @@ export default {
108108
},
109109
computed: {},
110110
methods: {
111-
login() {
111+
login () {
112112
this.ready = true;
113113
this.$auth.logout();
114114
this.$auth
@@ -122,7 +122,7 @@ export default {
122122
this.error = error.message;
123123
});
124124
},
125-
register() {
125+
register () {
126126
this.ready = true;
127127
this.$auth
128128
.registerWithEmailAndPassword(this.email, this.password)
@@ -135,7 +135,7 @@ export default {
135135
this.snackbar = true;
136136
});
137137
},
138-
signInGoogle() {
138+
signInGoogle () {
139139
this.ready = true;
140140
this.$auth
141141
.signInWithGoogle()
@@ -152,7 +152,7 @@ export default {
152152
this.snackbar = true;
153153
});
154154
},
155-
signInFacebook() {
155+
signInFacebook () {
156156
this.ready = true;
157157
this.$auth
158158
.signInWithFacebook()
@@ -165,7 +165,7 @@ export default {
165165
this.snackbar = true;
166166
});
167167
},
168-
signInTwitter() {
168+
signInTwitter () {
169169
this.ready = true;
170170
this.$auth
171171
.signInWithTwitter()
@@ -176,7 +176,7 @@ export default {
176176
this.snackbar = true;
177177
});
178178
},
179-
signInGithub() {
179+
signInGithub () {
180180
this.ready = true;
181181
this.$auth
182182
.signInWithGithub()
@@ -187,7 +187,7 @@ export default {
187187
this.snackbar = true;
188188
});
189189
},
190-
clear() {
190+
clear () {
191191
this.$refs.form.reset();
192192
}
193193
}

0 commit comments

Comments
 (0)