From cf14306c2b3f82a81f8d56669a71633b4d4b5fce Mon Sep 17 00:00:00 2001 From: marvin-borner@live.com Date: Mon, 16 Apr 2018 21:09:05 +0200 Subject: Main merge to user management system - files are now at /main/public/ --- .../userfrosting/js/pages/resend-verification.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 main/app/sprinkles/account/assets/userfrosting/js/pages/resend-verification.js (limited to 'main/app/sprinkles/account/assets/userfrosting/js/pages/resend-verification.js') diff --git a/main/app/sprinkles/account/assets/userfrosting/js/pages/resend-verification.js b/main/app/sprinkles/account/assets/userfrosting/js/pages/resend-verification.js new file mode 100755 index 0000000..5c3eaf8 --- /dev/null +++ b/main/app/sprinkles/account/assets/userfrosting/js/pages/resend-verification.js @@ -0,0 +1,19 @@ +/** + * Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template. + * example: {{ assets.js('js/pages/sign-in-or-register') | raw }} + * + * This script depends on validation rules specified in pages/partials/page.js.twig. + * + * Target page: account/resend-verification + */ +$(document).ready(function() { + + // TODO: Process form + $("#request-verification-email").ufForm({ + validators: page.validators.resend_verification, + msgTarget: $("#alerts-page") + }).on("submitSuccess.ufForm", function() { + // Forward to login page on success + window.location.replace(site.uri.public + "/account/sign-in"); + }); +}); -- cgit v1.2.3