mirror of
https://github.com/exane/not-gwent-online
synced 2025-10-09 07:39:08 +00:00
little register logic
This commit is contained in:
@@ -4,11 +4,21 @@ module.exports = {
|
||||
|
||||
inherit: true,
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
username: '',
|
||||
password: '',
|
||||
email: ''
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
register: function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
console.log("bal");
|
||||
if( ! this.username || ! this.password || ! this.email) {
|
||||
$('.form-error').hide().fadeIn('fast');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user