This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/views/Register.vue

61 lines
1.6 KiB
Vue
Raw Normal View History

2023-08-31 20:35:39 +00:00
<template>
<v-app>
<top-bar :show-back-icon="true" :page-title="pageTitle" />
<v-main>
<v-container>
<v-form name="register-form">
<div class="mb-3">
<label for="username">Username: </label>
<input type="text" id="username" v-model="input.username" />
</div>
<div class="mb-3">
<label for="password">Password: </label>
<input type="password" id="password" v-model="input.password" />
</div>
<div class="mb-3">
<label for="password">Password Confirmation: </label>
2023-08-31 20:55:00 +00:00
<input type="password" id="passwordConfirm" v-model="input.passwordConfirm" />
2023-08-31 20:35:39 +00:00
</div>
</v-form>
</v-container>
<v-btn @click.prevent="login">สมครสมาช</v-btn>
</v-main>
</v-app>
</template>
<script>
import TopBar from '@/components/TopBar.vue';
export default {
components: {
TopBar
},
name: 'register',
data() {
return {
2023-08-31 20:55:00 +00:00
pageTitle: 'สมัครสมาชิค',
2023-08-31 20:35:39 +00:00
input: {
username: '',
password: '',
passwordConfirm:''
}
};
},
methods: {
login() {
if (this.input.username !== '' || this.input.password !== '') {
console.log('Authenticated: Checking with Backend');
} else {
console.log('Username and Password cannot be empty');
}
}
}
};
</script>