<commit_before><template>
  <form class="login" @submit.prevent="onsubmit">
    <div class="row mb-2">
      <!-- <va-input
        class="mb-3"
        v-model="email"
        type="email"
        :label="t('auth.email')"
        :error="!!emailErrors.length"
        :error-messages="emailErrors"
      /> -->
    </div>
    <div class="row justify--center">
      <!-- <va-button type="submit" class="my-0">{{ t('auth.reset_password') }}</va-button> -->
    </div>
  </form>
</template>

<script>
  export default {
    name: "RecoverPassword",
    data() {
      return {
        email: "",
        emailErrors: [],
      };
    },
    methods: {
      onsubmit() {
        if (!this.email) {
          this.emailErrors = ["Email is required"];
        } else {
          this.$router.push("/");
        }
      },
    },
  };
</script>

<style lang="scss"></style><commit_msg>Restore Recover Passowrd<commit_after><template>
  <form class="login" @submit.prevent="onsubmit">
    <va-input
      v-model="email"
      class="mb-3"
      type="email"
      :label="t('auth.email')"
      :error="!!emailErrors.length"
      :error-messages="emailErrors"
    />

    <div class="d-flex justify--center mt-3">
      <va-button type="submit" class="my-0">{{ t("auth.reset_password") }}</va-button>
    </div>
  </form>
</template>

<script setup lang="ts">
  import { ref } from "vue";
  import { useRouter } from "vue-router";
  import { useI18n } from "vue-i18n";
  const { t } = useI18n();

  const email = ref("");
  const emailErrors = ref<string[]>([]);

  function onsubmit() {
    if (!email.value) {
      emailErrors.value = ["Email is required"];
    } else {
      useRouter().push("/");
    }
  }
</script>
{'fraction_non_alphanumeric': 0.20302501454333916, 'fraction_numerical': 0.006980802792321117, 'mean_word_length': 2.359375, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1883433', 'n_tokens_mistral': 581, 'n_tokens_neox': 576, 'n_words': 107}