[FEAT] Clean code
This commit is contained in:
@@ -6,7 +6,6 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
const pb = new PocketBase(import.meta.env.VITE_POCKETBASE_URL);
|
||||
const user = ref(pb.authStore.model);
|
||||
|
||||
// Sync user state on change
|
||||
pb.authStore.onChange(() => {
|
||||
user.value = pb.authStore.model;
|
||||
});
|
||||
@@ -21,7 +20,6 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
password,
|
||||
passwordConfirm,
|
||||
});
|
||||
// Auto login after register
|
||||
await login(email, password);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user