10.16UserAccount项目2信息补全
##一、修正
###1.前端修正
common.css 44行
.width782{ width:782px; margin-left:230px;margin-right:auto;}
.width782{ width:782px; margin-left:auto;margin-right:auto;}
register.css 15行
.sso_block_regist{width: 450px;border: none;box-shadow: none;}
.sso_block_regist{width: 450px;border: none;box-shadow: none;margin: 0 auto}
casPhoneRegisterView.jsp 的 96
<p class="dinline register_p">
<p class="register_p">
register.css 2行
.register_label{display:inline-block;width: 48px;text-align: right;}
.register_label{display:inline-block;width: 80px;text-align: right;}后端
PhoneRegistrationValidator.java
邮箱已注册的提示
errors.rejectValue("email", "phone.registered.email");
errors.rejectValue("email", "registered.email");###2.完全按设计来
之前:register.css
.register_title { border-radius:3px 3px 0 0; border:1px solid #dfdfdf; background-color:#dfdfdf; color:#ffffff; font-size:20px; height:45px; line-height:45px; text-shadow:0 0 1px #eeeeee;}
.register_label{display:inline-block;width: 48px;text-align: right;}
.sso_block input[type="text"],.sso_block input[type="password"]{width: 355px;margin-left: 24px;}
.register_blue{ color:#3498db;}
.register_p{font-size:14px;color:#888888;text-shadow: 0 0 1px #cccccc;margin-left: 80px;}
.register_check{ padding-left:25px; cursor:pointer; background:url("../img/register/check.png") no-repeat 0 0; height:17px; line-height:17px; display:inline-block;}
.register_click{ background-position:0 -17px;}
.register_sent{ position: relative; height:28px; text-align: right;}
.register_sent a{ position: absolute; right:3px; top:28px;}
li.register_active, .register_active a{background-color:white; border-bottom:1px solid white;cursor:default;}
.register_orPhone, .register_orEmail {width:222px; height:100%; cursor:pointer; float:left; text-align:center;}
.register_orPhone a, .register_orEmail a{text-decoration:none; color:black;}
#getVerifyCode {float:right;margin-top:14px;height:37px;}
#registerButton {width:350px;height:40px;float: right;}
.sso_block_regist{width: 450px;border: none;box-shadow: none;}###3.改正的
####1.register.css
register.css 3行
.sso_block input[type="text"],.sso_block input[type="password"]{width: 355px;margin-left: 24px;}
.sso_block input[type="text"],.sso_block input[type="password"]{width: 294px;height:32px;margin-left: 24px;border-radius:2px;font-size:12px;line-height:24px;}
register.css 2行
.register_label{display:inline-block;width: 48px;text-align: right;}
.register_label{display:inline-block;width: 80px;text-align: right;font-size:14px;font-family:Microsoft YaHei;font-weight:400;color:rgba(51,51,51,1);line-height:24px;}
5行
.register_p{font-size:14px;color:#888888;text-shadow: 0 0 1px #cccccc;margin-left: 80px;}
.register_p{font-size:12px;color:rgba(153,153,153,1);;text-shadow: 0 0 1px #cccccc;margin-left: 109px;width: 294px;line-height:24px;}
14行
#registerButton {width:350px;height:40px;float: right;}
#registerButton {
width: 274px;
height: 32px;
float: right;
margin-right: 46px;
border-radius: 2px;
font-size: 14px;
line-height: 24px;
}
13行
#getVerifyCode {float:right;margin-top:14px;height:37px;}
#getVerifyCode {float: right;margin-top: 10px; height: 34px;min-width: min-content;border-radius: 2px;font-size: 12px;color: rgba(255,255,255,1);line-height: 24px;margin-right: 46px;}####2.casPhoneRegisterView.jsp
casPhoneRegisterView.jsp 的 23
<div class="width782 pt50">
<div class="width782 pt20">
86行
style="width:180px;"
style="width:160px;"
36行
<div class="mt15">
<div class="mt6">
95,103行
<div class="mt25">
<div class="mt20">
common.css
.width782 {
width: 782px;
margin-left: auto;
margin-right: auto;
}
.width782 {
width: 782px;
height: 608px;
margin-left: auto;
margin-right: auto;
}4.top_common.jsp(标题不对)
97
viewResource.properties
viewResource_zh.properties
viewResource_en.properties
Top_Common_Register=注册
Top_Common_Register=注册超图账号
Top_Common_Register=Create account
Top_Common_Register=Create Supermap account###4.安全按设计之后
css
.register_title { border-radius:3px 3px 0 0; border:1px solid #dfdfdf; background-color:#dfdfdf; color:#ffffff; font-size:20px; height:45px; line-height:45px; text-shadow:0 0 1px #eeeeee;}
.register_label{display:inline-block;width: 80px;text-align: right;font-size:14px;color:rgba(51,51,51,1);line-height:24px;}
.sso_block input[type="text"],.sso_block input[type="password"]{width: 279px;height:32px;margin-left: 24px;border-radius:2px;font-size:12px;line-height:24px;}
.register_blue{ color:#3498db;}
.register_p{font-size:12px;color:rgba(153,153,153,1);;text-shadow: 0 0 1px #cccccc;margin-left: 109px;width: 294px;line-height:24px;}
.register_check{ padding-left:25px; cursor:pointer; background:url("../img/register/check.png") no-repeat 0 0; height:17px; line-height:17px; display:inline-block;}
.register_click{ background-position:0 -17px;}
.register_sent{ position: relative; height:28px; text-align: right;}
.register_sent a{ position: absolute; right:3px; top:28px;}
li.register_active, .register_active a{background-color:white; border-bottom:1px solid white;cursor:default;}
.register_orPhone, .register_orEmail {width:222px; height:100%; cursor:pointer; float:left; text-align:center;}
.register_orPhone a, .register_orEmail a{text-decoration:none; color:black;}
#getVerifyCode {float: right;margin-top: 10px; height: 34px;min-width: min-content;border-radius: 2px;font-size: 12px;color: rgba(255,255,255,1);line-height: 24px;margin-right: 46px;}
#registerButton {width: 274px;height: 32px;float: right;margin-right: 46px;border-radius: 2px;font-size: 14px;line-height: 24px;}
.sso_block_regist{width: 450px;border: none;box-shadow: none;margin: 0 auto}二、改回ip
https://sso.supermap.com
本来就是http://sso.supermap.com loginWindow.js
CLIENT_LOGIN_URL : "http://sso.supermap.com/TestCasClient/login?popup=true",
127.0.0.1
cas.securityContext.status.allowedSubnet=127.0.0.1
<a href="http://127.0.0.1:8080/TestCasClient/login">Login</a>
jsonObject.put("last_sign_in_ip", "127.0.0.1");
ips.put("DebugChengduLocal", "127.0.0.1");
Mockito.doReturn("127.0.0.1").when(request).getRemoteAddr();
IPMap.put("testIP", "127.0.0.1");//
user.setIpAddress("127.0.0.1");
cas.securityContext.status.allowedSubnet=127.0.0.1
<entry key="DebugChengduLocal" value="127.0.0.1" />
127.0.0.1;##三、登录
###1.cas.properties
#Created by JInto - www.guh-software.de
#Wed Oct 28 16:29:08 CST 2015
cas.securityContext.status.allowedSubnet=127.0.0.1
cas.themeResolver.defaultThemeName=cas-theme-default
cas.viewResolver.basename=default_views
host.name=sso.supermap.com
icloud.default.serviceUrl=http\://www.supermapol.com/shiro-cas
icloud.resultUrl=$(server.prefix)/result.html
icloud.usermanager.host=sso.supermap.com
#icloud.usermanager.url=https\://sso.supermap.com/v101/account/manager/manager.do?manager
icloud.usermanager.url=https\://sso.supermap.com/v101/account/manager/manager.do?manager=accountInfo
password.policy.url=https\://password.example.edu/change
password.policy.warnAll=false
password.policy.warningDays=30
register.validateUrl=${server.prefix}/mailvalidate
server.name=https\://sso.supermap.com
#server.name=https\://online:8443/
server.prefix=${server.name}/v101/cas2.web.xml
##四、ip更换
1. 127.0.0.1 => 127.0.0.2
2. loginWindow.js =>
CLIENT_LOGIN_URL : "http://sso.supermap.com/TestCasClient/login?popup=true",
3. D:\supermap\ideaworkspaces\UserAccount\accounts\src\main\webapp\WEB-INF\web.xml
127.0.0.2 => 127.0.0.1
4. https://sso.supermap.com => http://sso.supermap.com
5. sso.supermap.com => 127.0.0.1