2018-03-31 21:52:11 +01:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<form class="bg-white shadow-lg rounded-lg pt-10 px-8 pb-6 mb-4 animate fadein" method="post">
|
|
|
|
<div class="flex flex-wrap -mx-3 mb-6">
|
|
|
|
<div class="input-open">
|
2018-03-31 22:33:10 +01:00
|
|
|
<input class="input" id="grid-email" type="email" aria-labelledby="grid-email" required
|
2018-03-31 21:52:11 +01:00
|
|
|
v-bind:value="email"
|
|
|
|
v-on:input="updateEmail($event)"
|
|
|
|
/>
|
2018-03-31 22:33:10 +01:00
|
|
|
<label for="grid-email">{{ $t('strings.email') }}</label>
|
|
|
|
<p class="text-grey-darker text-xs">{{ $t('auth.reset_help_text') }}</p>
|
2018-03-31 21:52:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
2018-03-31 22:44:20 +01:00
|
|
|
<csrf/>
|
2018-03-31 22:33:10 +01:00
|
|
|
<button class="btn btn-blue btn-jumbo" type="submit">
|
|
|
|
{{ $t('auth.recover_account') }}
|
2018-03-31 21:52:11 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="pt-6 text-center">
|
|
|
|
<router-link to="/" class="text-xs text-grey tracking-wide no-underline uppercase hover:text-grey-dark">
|
2018-03-31 22:33:10 +01:00
|
|
|
{{ $t('auth.go_to_login') }}
|
2018-03-31 21:52:11 +01:00
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-03-31 22:44:20 +01:00
|
|
|
import Csrf from "../shared/CSRF";
|
|
|
|
|
2018-03-31 21:52:11 +01:00
|
|
|
export default {
|
2018-03-31 22:44:20 +01:00
|
|
|
components: {Csrf},
|
2018-03-31 21:52:11 +01:00
|
|
|
name: 'forgot-password',
|
|
|
|
props: {
|
|
|
|
email: {type: String, required: true},
|
|
|
|
},
|
2018-03-31 22:44:20 +01:00
|
|
|
data: function () {
|
|
|
|
return {
|
|
|
|
X_CSRF_TOKEN: window.X_CSRF_TOKEN,
|
|
|
|
};
|
|
|
|
},
|
2018-03-31 21:52:11 +01:00
|
|
|
methods: {
|
|
|
|
updateEmail: function (event) {
|
|
|
|
this.$emit('update-email', event.target.value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|