Advertisement
sasha_jarvi

Vue LoginPage

Sep 16th, 2020
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <template>
  2. <div id="login" class="login-container">
  3. <form role="form" action="/login" method="post">
  4. <div class="form-control">
  5. <input
  6. id="email"
  7. type="email"
  8. name="email"
  9. placeholder="Email address"
  10. required
  11. autofocus
  12. >
  13. </div>
  14.  
  15. <div class="form-control">
  16. <input
  17. id="password"
  18. type="password"
  19. name="password"
  20. placeholder="Password"
  21. required
  22. >
  23. </div>
  24.  
  25. <input type="hidden" name="_token" :value="csrf_token">
  26.  
  27. <div class="form-control">
  28. <button type="submit">Log in</button>
  29. </div>
  30. </form>
  31. </div>
  32. </template>
  33.  
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. csrf_token: document.head.querySelector('meta[name="csrf-token"]').getAttribute('content')
  39. }
  40. }
  41. }
  42. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement