Working on a user registration system via ZOHO accounts....
The sign-in is working, but the page redirection (OpenURL) fails for some reason. It's shared to support.
You can try the application here:
http://creator.zoho.com/niskypto/myusers/view-login/USERTYPEhtmlpage USERTYPE()
<%{
//This script checks if the user is signed-in with his ZOHO account. If not, the page reloads.
if (zoho.loginuser != "Public")
{
//This script finds if the user is already in the database. If he is not, the register form appears. If he is, the personal form appears.
if (count(DB[EMAIL == zoho.loginuserid]) == 0)
{
openUrl("http://creator.zoho.com/niskypto/myusers/#Form:REG", "same window");
}
else
{
openUrl("http://creator.zoho.com/niskypto/myusers/#Form:MYPAGE", "same window");
}
}
if (zoho.loginuser == "Public")
{
openUrl("http://creator.zoho.com/niskypto/myusers/page-login/USERTYPE/", "same window");
}
}%>