mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-21 07:43:45 +02:00
Add csrf component
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<csrf/>
|
||||
<button class="btn btn-blue btn-jumbo" type="submit">
|
||||
{{ $t('auth.sign_in') }}
|
||||
</button>
|
||||
@@ -31,11 +32,19 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Csrf from "../shared/CSRF";
|
||||
|
||||
export default {
|
||||
components: {Csrf},
|
||||
name: 'login-form',
|
||||
props: {
|
||||
email: { type: String, required: true },
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
X_CSRF_TOKEN: window.X_CSRF_TOKEN,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
updateEmail: function (event) {
|
||||
this.$emit('update-email', event.target.value);
|
||||
|
||||
Reference in New Issue
Block a user