@@ -31,12 +31,11 @@
success: function (data) {
if (data.state.toLowerCase() == "success") {
helper.cookies.set("openid", data.data, 7);
- setTimeout('gourl()', 500);
}
});
- if (!openid) {
+ if (!helper.cookies.get("openid")) {
window.location.replace("html/error.html?r=" + Math.random());