Last active
September 8, 2019 19:15
-
-
Save DesKevinMendez/0acc06217be3968bc722d6922f06e7b1 to your computer and use it in GitHub Desktop.
Vista login para register-larave-vue-jwt-medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="home"> | |
<div class="wrapper fadeInDown"> | |
<div id="formContent"> | |
<!-- Tabs Titles --> | |
<!-- Icon --> | |
<div class="fadeIn first"> | |
<img :src="img" id="icon" alt="User Icon" /> | |
</div> | |
<!-- Login Form --> | |
<form> | |
<input type="text" v-model="data.email" id="login" class="fadeIn second" name="login" placeholder="login"> | |
<input type="password" v-model="data.password" id="password" class="fadeIn third" name="login" placeholder="password"> | |
<input type="button" @click="login" class="fadeIn fourth" value="Log In"> | |
</form> | |
<!-- Remind Passowrd --> | |
<div id="formFooter"> | |
<a class="underlineHover" href="#">Forgot Password? Good! :v</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
</template> | |
<script lang="ts"> | |
import { Component, Vue } from 'vue-property-decorator'; | |
import { Action } from 'vuex-class'; | |
import authTypes from '../store/types/authTypes'; | |
const img = require('@/assets/logo.png'); | |
@Component({ | |
name: 'Login', | |
data() { | |
return { | |
img, | |
data: { | |
email: '', | |
password: '' | |
} | |
} | |
}, | |
components: { | |
}, | |
}) | |
export default class Login extends Vue { | |
public login() { | |
// console.log(this.$data.data); | |
this.loginUser(this.$data.data); | |
} | |
@Action(`authModule/${authTypes.actions.LOGINUSER}`) loginUser: any; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment