express-api-user-management-signup
Advanced tools
Comparing version 0.0.53 to 0.0.54
@@ -59,2 +59,3 @@ | ||
success: function(data){ | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard', 'logout', 'succes', 1); | ||
that.showLockedAlert('You are now logged out.<br>Redirecting you back to the homepage.'); | ||
@@ -90,2 +91,3 @@ }, | ||
$('.modal-confirm .submit').click(function(){ | ||
if( ga != undefined ) ga('send', 'event', 'click', 'userdashboard', 'account_delete', 1); | ||
that.deleteAccount(); | ||
@@ -101,2 +103,3 @@ }); | ||
$('.modal-confirm .submit').click(function(){ | ||
if( ga != undefined ) ga('send', 'event', 'click', 'userdashboard', 'apikey_regenerate', 1); | ||
that.regenerateApiKey(); | ||
@@ -117,2 +120,3 @@ }); | ||
$('.modal-alert button').off('click'); | ||
if( ga != undefined ) ga('send', 'event', 'click', 'userdashboard', 'account_update', 1); | ||
} |
@@ -18,3 +18,6 @@ | ||
success : function(responseText, status, xhr, $form){ | ||
if (status == 'success') hc.onUpdateSuccess(); | ||
if (status == 'success'){ | ||
hc.onUpdateSuccess(); | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','signup', 'succes', 1); | ||
} | ||
}, | ||
@@ -24,3 +27,5 @@ error : function(e){ | ||
av.showInvalidEmail(); | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','signup','email_taken', 1); | ||
} else if (e.responseText == 'username-taken'){ | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','signup','invalid_username', 1); | ||
av.showInvalidUserName(); | ||
@@ -27,0 +32,0 @@ } |
@@ -20,6 +20,8 @@ | ||
success : function(responseText, status, xhr, $form){ | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','login', 'succes', 1); | ||
if (status == 'success') window.location.href = '/home'; | ||
}, | ||
error : function(e){ | ||
lv.showLoginError('Login Failure', 'Please check your username and/or password'); | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard', 'login', 'fail', 1); | ||
lv.showLoginError('Login Failure', 'Please check your username and/or password'); | ||
} | ||
@@ -52,2 +54,2 @@ }); | ||
}) | ||
}) |
@@ -16,2 +16,3 @@ | ||
success : function(responseText, status, xhr, $form){ | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','login', 'reset_password', 1); | ||
rv.showSuccess("Your password has been reset."); | ||
@@ -28,2 +29,2 @@ setTimeout(function(){ window.location.href = '/'; }, 3000); | ||
}); | ||
}); |
@@ -12,8 +12,13 @@ | ||
success : function(responseText, status, xhr, $form){ | ||
if (status == 'success') $('.modal-alert').modal('show'); | ||
if (status == 'success'){ | ||
$('.modal-alert').modal('show'); | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','signup', 'succes', 1); | ||
} | ||
}, | ||
error : function(e){ | ||
if (e.responseText == 'email-taken'){ | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','signup', 'email_taken', 1); | ||
av.showInvalidEmail(); | ||
} else if (e.responseText == 'username-taken'){ | ||
if( ga != undefined ) ga('send', 'event', 'userdashboard','signup', 'invalid_username', 1); | ||
av.showInvalidUserName(); | ||
@@ -40,2 +45,2 @@ } | ||
}) | ||
}) |
{ | ||
"name": "express-api-user-management-signup", | ||
"version": "0.0.53", | ||
"version": "0.0.54", | ||
"description": "adds user frontend with login-, registration-, and webhook- features to your (express) application. Startingpoint for DIY api management", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
727113
10241