Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/features/84-fluent' into feature…
Browse files Browse the repository at this point in the history
…s/84-fluent
  • Loading branch information
MelissaAutumn committed Jan 8, 2024
2 parents 90e6f13 + 975b6a3 commit 897efd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/stores/user-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const useUserStore = defineStore('user', {
const { error, data } = await fetch('me').get().json();

// Failed to get profile data, log this user out and return false
if (error.value) {
if (error.value || !data.value) {
this.reset();
return false;
}
Expand All @@ -47,7 +47,7 @@ export const useUserStore = defineStore('user', {
async login(fetch, username, password) {
this.reset();

if (import.meta.env?.VUE_AUTH_SCHEME === 'password') {
if (import.meta.env.VITE_AUTH_SCHEME === 'password') {
// fastapi wants us to send this as formdata :|
const formData = new FormData(document.createElement('form'));
formData.set('username', username);
Expand Down

0 comments on commit 897efd0

Please sign in to comment.