mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-15 20:48:03 +00:00
Add sample support, re-organize repo
This commit is contained in:
@@ -46,34 +46,4 @@
|
||||
</v-form>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
valid: false,
|
||||
username: '',
|
||||
password: '',
|
||||
usernameRules: [
|
||||
v => !!v || 'Username is required'
|
||||
],
|
||||
passwordRules: [
|
||||
v => !!v || 'Password is required'
|
||||
]
|
||||
}),
|
||||
methods: {
|
||||
login () {
|
||||
this.$http.post('/login/password', {
|
||||
username: this.username,
|
||||
password: this.password
|
||||
})
|
||||
.then(response => {
|
||||
if (response.status === 200) {
|
||||
this.$router.push('/')
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error.response)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src="./login.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user