登录、初始化问题 #82

Closed
springlin2012 opened this Issue Sep 1, 2012 · 1 comment

Projects

None yet

3 participants

@springlin2012

设置密码为 xxx!@# (xxx字符) 就无法初始化、登录。

版本为 050。

@Vanessa219 Vanessa219 was assigned Sep 1, 2012
@88250
Member
88250 commented Sep 1, 2012

目前已知影响初始化(init.ftl)和登录(login.ftl),里面发请求的时候没有把 requestJSONObject 的 value 字段用 “” 括起来,导致 JSON 服务端解析时报错。

var initSys = function () {
                var requestJSONObject = '{'
                    + '"userName": ' + $("#userName").val() + ','
                    + '"userEmail": ' + $("#userEmail").val() + ','
                    + '"userPassword": ' + $("#userPassword").val()
                    + '}';

                if(confirm("${confirmInitLabel}")){
                    $.ajax({
                        url: "${contextPath}/init",
                        type: "POST",
                        data: requestJSONObject,
@Vanessa219 Vanessa219 added a commit that closed this issue Sep 1, 2012
@Vanessa219 Vanessa219 fixed #82
加双引号无法规避'\b',\t','\n',\f','\r','"','\\'情况,还是需要使用 JSON。如果浏览器不自带 JSON,则加载
JSON2.js。
d701931
@Vanessa219 Vanessa219 closed this in d701931 Sep 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment