Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div id="login" class="login-container">
- <form role="form" action="/login" method="post">
- <div class="form-control">
- <input
- id="email"
- type="email"
- name="email"
- placeholder="Email address"
- required
- autofocus
- >
- </div>
- <div class="form-control">
- <input
- id="password"
- type="password"
- name="password"
- placeholder="Password"
- required
- >
- </div>
- <input type="hidden" name="_token" :value="csrf_token">
- <div class="form-control">
- <button type="submit">Log in</button>
- </div>
- </form>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {
- csrf_token: document.head.querySelector('meta[name="csrf-token"]').getAttribute('content')
- }
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement