Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

register.min.js 4.1KB

12345678910111213141516171819202122232425262728293031323334
  1. var Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseComponent{submit(){}jsFiles(){return["tenants/themes/compact/index.anonymous.js","platform/membership/managers/accountmanager.js","platform/core/helpers/navigation/navigationhelper.js","libs/passwordrequirement/passwordrequirement.js"]}cssFiles(){return["libs/passwordrequirement/passwordrequirement.css"]}html(){if(jQuery("#external-form").length===0){var n=new t.Index_Anonymous;n.init(null)}return`<div>
  2. <form id="frm_Register">
  3. <div id="bizgaze_SpiltErrorMessages"></div>
  4. <div id="div_CreatePswd">
  5. <h1 class="display-4 mb-30 text-dark-100 text-center">Register</h1>
  6. <div class="alert alert-primary">We will send link to your <a href=""><u>Email</u></a> to create your password.</div>
  7. <div class="form-group">
  8. <label class="control-label" id="lbl_Email">Email Address</label>
  9. <input id="signupEmail" value="" class="form-control input-lg text-dark" disabled="disabled">
  10. </div>
  11. <div class="form-group">
  12. <label class="control-label">Password</label>
  13. <input type="password" id="signupPassword" placeholder="Type a password" class="pr-password signupPassword form-control input-lg" autocomplete="new-password">
  14. </div>
  15. <div class="form-group">
  16. <label class="control-label">Confirm Password</label>
  17. <input type="password" id="ConfirmPassword" placeholder="Type a password" class="ConfirmPassword form-control input-lg" autocomplete="new-password">
  18. </div>
  19. <button class="btn btn-primary btn-block mb-20"
  20. type="button" id="btnSignUp">Register</button><p class="text-right"><a href="Index.html#/login">
  21. Back to login</a></p>
  22. </div>
  23. </div>
  24. <div id="div_SuccessMsg" class="d-none">
  25. <div class="d-62 bg-white rounded-circle mb-10 d-flex align-items-center justify-content-center mx-auto"><i class="fa fa-check font-50 text-success"></i>
  26. </div>
  27. <h1 class="display-4 mb-20 text-center">Password Created Successfully</h1>
  28. <p class="text-center"><a href="Index.html#/login">Click here to Login</a></p>
  29. </div>
  30. </form>`}load(){var t=n.Platform.Helpers.FileCacheHelper.Instance();jQuery(".preloader-it").delay(500).fadeOut("slow");jQuery("#external-container").delay(500).fadeIn("slow");jQuery("#bizgaze_body").css("background-color","#f4f6f7");$("#div_modalbody").removeAttr("style");this._accountManager=n.Platform.Membership.Managers.AccountManager.Instance();$(".pr-password").click(function(){var n=$(".pr-password");n.passwordRequirements({numCharacters:8,useLowercase:!0,useUppercase:!0,useNumbers:!0,useSpecial:!0})})}register(n){var t=this;$("#signupEmail").val(n.email);$(document).bind("keypress",function(n){n.keyCode==13&&$("#btnSignUp").trigger("click")});$("#btnSignUp").click(function(){t.signupregister(n.userid,n.tenant,n.email,n.phonenumber)})}signupregister(n,t,i,r){var s=this,u=$(".ConfirmPassword").val().toString(),f=$(".signupPassword").val().toString(),t=t,e=n,i=i,r=r,o;if(f==""||u=="")return MessageHelper.Instance().showError("Password cannot be empty","bizgaze_SpiltErrorMessages"),!1;if($(".signupPassword").val().toString().length<6||$(".ConfirmPassword").val().toString().length<6)return MessageHelper.Instance().showError("Password must be atleast 6 characters !","bizgaze_SpiltErrorMessages"),!1;if(f!=u)return MessageHelper.Instance().showError("New and Confirm passwords does not match","bizgaze_SpiltErrorMessages"),!1;o={ConfirmPassword:u,Password:f,UserId:e,TenantId:Number(t),UserName:e,Email:i,ContactNumber:r};s._accountManager.register(o).then(function(){$("#div_CreatePswd").addClass("d-none");$("#div_SuccessMsg").removeClass("d-none");MessageHelper.Instance().showSuccess("Password Created Successfully","bizgaze_SpiltErrorMessages")})}static Instance(){return new i}}t.Register=i})(i=t.Components||(t.Components={}))})(i=t.Compact||(t.Compact={}))})(t=n.Themes||(n.Themes={}))})(Unibase||(Unibase={}));