mirror of
https://github.com/exane/not-gwent-online
synced 2025-08-13 13:07:32 +00:00
simple register
This commit is contained in:
site
@@ -18,8 +18,23 @@ module.exports = {
|
||||
|
||||
if( ! this.username || ! this.password || ! this.email) {
|
||||
$('.form-error').hide().fadeIn('fast');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$('.form-error').hide();
|
||||
$('.icon-action-load').show();
|
||||
|
||||
this.$http.post('./api/register', this.$data, function(data) {
|
||||
|
||||
location.reload();
|
||||
|
||||
}).error(function (data) {
|
||||
|
||||
$('.icon-action-load').hide();
|
||||
|
||||
})
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user