Jump to content
  • 0

redirect not working for me


joseangelflores

Question

Hi everyone, I am trying to redirect and I tried everything and it´s just not working,

I have a table of CLIENTUSERS, with EMAIL and PASSWORD fields as login fields in the Authentication Wizard, and I created an extra field for CLIENTTYPE, but the redirects just don´t work. What kind of Field is it supposed to be? a text or number field? the redirect keeps taking me to the last option, it just goes to the last "else.

Thanks for the support.

if("[@authfield:TIPOCLIENTE]" == "NMS"){

window.location = "http://www.mysite.com/manager.html";

}

else if ("[@authfield:TIPOCLIENTE]" == "CAINTRA"){

window.location = "http://www.mysite.com/staff.html";

}

else if ("[@authfield:TIPOCLIENTE]" == "CAINTRADM"){

window.location = "http://www.mysite.com/staff.html";

}

else{

window.location = "http://www.mysite.com/other";

}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...