Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Vue({
- el : "body",
- data : {
- email : null,
- password : null,
- },
- methods : {
- login : function () {
- this.$http({
- url: '/admin/loginAction',
- method: 'post',
- headers: {
- 'X-CSRFToken' : '{{ csrf_token() }}'
- },
- data : {
- username : this.email,
- password : this.password
- }
- }).then(function(response){
- },function(response){
- //err
- })
- }
- }})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement