Advertisement
matekaOSF2

EkreateLoginWithoutChapta

Sep 21st, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. var data = $("#LoginForm").toObject();
  2. AjaxHelper.DoValidationPost("/Adminisztracio/Login/LoginCheck",
  3. "LoginForm",
  4. data,
  5. loginCallback
  6. );
  7.  
  8. function loginCallback(answer) {
  9. if (answer.Success) {
  10. if (typeof answer.WarningMessage !== "undefined" && answer.WarningMessage !== "") {
  11. alert(answer.WarningMessage);
  12. }
  13. loginRedirect();
  14. }
  15. }
  16.  
  17. function loginRedirect() {
  18. location.href = "/Adminisztracio/SzerepkorValaszto";
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement