Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
5c66731e
Commit
5c66731e
authored
Jun 25, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12786 1.11.0対応
parent
95342c7f
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
56 additions
and
23 deletions
+56
-23
abvw/common/js/avweb.js
+1
-1
abvw/common/js/common.js
+23
-0
abvw/js/bookmark.js
+1
-1
abvw/js/contentsearch.js
+1
-1
abvw/js/header.js
+0
-2
abvw/js/history.js
+1
-1
abvw/js/home.js
+1
-1
abvw/js/login.js
+16
-1
abvw/js/settings.js
+6
-9
abvw/settings.html
+3
-3
login.html
+3
-3
No files found.
abvw/common/js/avweb.js
View file @
5c66731e
...
...
@@ -57,7 +57,7 @@ var UserEnvironment = function() {
};
/** check user browser */
function
checkBrowser
(
userAgent
)
{
if
(
userAgent
.
toLowerCase
().
indexOf
(
"msie"
)
>=
0
)
{
if
(
userAgent
.
toLowerCase
().
indexOf
(
"msie"
)
>=
0
||
userAgent
.
toLowerCase
().
indexOf
(
"trident"
)
>=
0
)
{
return
"msie"
;
}
if
(
userAgent
.
toLowerCase
().
indexOf
(
"firefox"
)
>=
0
)
{
...
...
abvw/common/js/common.js
View file @
5c66731e
...
...
@@ -161,6 +161,11 @@ var Keys = {
serviceOpt_marking
:
'marking'
,
// Session :事業者オプション(serviceOpt)_一定期間経過後アプリロック:Char(Y:可能, N:不可)
serviceOpt_force_login_periodically
:
'force_login_periodically'
,
// Session :事業者オプション(serviceOpt)_パスワード変更:Char(Y:可能, N:不可)
serviceOpt_change_pw
:
'change_pw'
,
// Session :事業者オプション(serviceOpt)_パスワードポリシー:Integer(0:標準, 1:S社)
serviceOpt_password_policy
:
'password_policy'
,
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
'common_contentId'
,
// Local :共通(common)_コンテンツID:Integer
...
...
@@ -1054,6 +1059,24 @@ var ClientData = {
}
},
// Session :事業者オプション(serviceOpt)_パスワード変更:Char(Y:可能, N:不可)
serviceOpt_change_pw
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
Keys
.
serviceOpt_change_pw
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
Keys
.
serviceOpt_change_pw
);
}
},
// Session :事業者オプション(serviceOpt)_パスワードポリシー:Integer(0:標準, 1:S社)
serviceOpt_password_policy
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
Keys
.
serviceOpt_password_policy
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
Keys
.
serviceOpt_password_policy
);
}
},
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
...
...
abvw/js/bookmark.js
View file @
5c66731e
...
...
@@ -35,7 +35,7 @@ $(document).ready(function () {
ClientData
.
BookmarkScreen
(
ScreenIds
.
BookmarkList
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
){
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
){
// Synchronize bookmarks with server
SyncContent
();
...
...
abvw/js/contentsearch.js
View file @
5c66731e
...
...
@@ -53,7 +53,7 @@ $(document).ready(function(){
ClientData
.
BookmarkScreen
(
ScreenIds
.
ContentSearch
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
){
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
){
//Format text display more record
formatDisplayMoreRecord
();
...
...
abvw/js/header.js
View file @
5c66731e
...
...
@@ -9,8 +9,6 @@ $(document).ready(function () {
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
// Set event to prevent leave
//avwSetLogoutNortice();
if
(
ClientData
.
requirePasswordChange
()
!=
1
)
{
...
...
abvw/js/history.js
View file @
5c66731e
...
...
@@ -52,7 +52,7 @@ $(document).ready(function(){
ClientData
.
BookmarkScreen
(
ScreenIds
.
History
);
if
(
ClientData
.
requirePasswordChange
()
!=
1
){
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
){
if
(
ClientData
.
ReadingContentIds
()
==
null
||
ClientData
.
ReadingContentIds
()
==
'undefined'
||
ClientData
.
ReadingContentIds
().
length
==
0
){
}
else
{
syncReadingContent
();
...
...
abvw/js/home.js
View file @
5c66731e
...
...
@@ -59,7 +59,7 @@ $(document).ready(function () {
ClientData
.
BookmarkScreen
(
ScreenIds
.
Home
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
)
{
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
)
{
// Register log
RegisterLog
();
...
...
abvw/js/login.js
View file @
5c66731e
...
...
@@ -24,6 +24,8 @@ var force_pw_change_periodically;
var
user_data_backup
;
var
marking
;
var
force_login_periodically
;
var
change_pw
;
var
password_policy
;
var
login_errorMessage
=
""
;
//Load login Info
...
...
@@ -230,7 +232,7 @@ function processLogin() {
$
(
'#main-error-message'
).
css
(
'display'
,
'none'
);
if
(
data
.
requirePasswordChange
==
0
)
{
if
(
data
.
requirePasswordChange
==
0
||
change_pw
==
'N'
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
avwScreenMove
(
"abvw/"
+
ScreenIds
.
Home
);
}
...
...
@@ -488,6 +490,12 @@ function saveServiceUserOption(){
else
if
(
option
.
serviceName
==
'user_data_backup'
){
ClientData
.
serviceOpt_user_data_backup
(
option
.
value
);
}
else
if
(
option
.
serviceName
==
'change_pw'
){
ClientData
.
serviceOpt_change_pw
(
option
.
value
);
}
else
if
(
option
.
serviceName
==
'password_policy'
){
ClientData
.
serviceOpt_password_policy
(
option
.
value
);
}
});
};
...
...
@@ -511,6 +519,13 @@ function getServiceOptionList(){
else
if
(
option
.
serviceName
==
'user_data_backup'
){
user_data_backup
=
option
.
value
;
}
else
if
(
option
.
serviceName
==
'change_pw'
){
change_pw
=
option
.
value
;
}
else
if
(
option
.
serviceName
==
'password_policy'
){
password_policy
=
option
.
value
;
}
});
};
...
...
abvw/js/settings.js
View file @
5c66731e
...
...
@@ -59,12 +59,15 @@ $(document).ready(function () {
$
(
"#dspOptBk"
).
hide
();
}
if
(
ClientData
.
serviceOpt_change_pw
()
==
'N'
)
{
$
(
"#dspPwdUpd"
).
hide
();
}
else
{
// Get flag to determine must change password
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"requirePasswordChange"
,
'GET'
,
{
sid
:
ClientData
.
userInfo_sid
()
},
avwCmsApi_requirePasswordChange_success
,
null
);
}
// In case: user_data_backup = "Y" -> backup
if
(
ClientData
.
serviceOpt_user_data_backup
()
!=
"Y"
)
{
...
...
@@ -526,22 +529,19 @@ function dspPwdUpd1_Click(e) {
if
(
isOK
)
{
/*
// Check max length
if (!ValidationUtil.CheckMaxLengthForByte(getCurrentPassword(), 16)) {
isOK = false;
}
if (!ValidationUtil.CheckMaxLengthForByte(getNewPassword(), 16)) {
isOK = false;
}
if (!ValidationUtil.CheckMaxLengthForByte(getNewPasswordRe(), 16)) {
isOK = false;
}
// Data type
if (!ValidationUtil.IsAlphabetOrNumberOrSymbol(getCurrentPassword())) {
isOK = false;
}
if (!ValidationUtil.IsAlphabetOrNumberOrSymbol(getNewPassword())) {
...
...
@@ -550,12 +550,9 @@ function dspPwdUpd1_Click(e) {
if (!ValidationUtil.IsAlphabetOrNumberOrSymbol(getNewPasswordRe())) {
isOK = false;
}
*/
var
str
=
getCurrentPassword
()
+
""
;
// if (str.contains("_") || str.contains("‐")) {
// isOK = false;
// }
}
// Do changing password
...
...
abvw/settings.html
View file @
5c66731e
...
...
@@ -133,15 +133,15 @@
<span
id=
"dialog-error-message"
class=
"alertTxtDialog lang"
>
</span>
<dl>
<dt><label
id=
"lblPwdCur"
class=
"lang"
lang=
"txtPwdCurr"
>
現在パスワード
</label></dt>
<dd><input
type=
"password"
id=
"txtPwdCur"
maxlength=
"1
6
"
/></dd>
<dd><input
type=
"password"
id=
"txtPwdCur"
maxlength=
"1
28
"
/></dd>
</dl>
<dl>
<dt><label
id=
"lblPwdNew"
class=
"lang"
lang=
"txtPwdNew"
>
変更パスワード
</label></dt>
<dd><input
type=
"password"
id=
"txtPwdNew"
maxlength=
"1
6
"
/></dd>
<dd><input
type=
"password"
id=
"txtPwdNew"
maxlength=
"1
28
"
/></dd>
</dl>
<dl>
<dt><label
id=
"lblPwdNewRe"
class=
"lang"
lang=
"txtPwdNewRe"
>
(再)変更パスワード
</label></dt>
<dd><input
type=
"password"
id=
"txtPwdNewRe"
maxlength=
"1
6
"
/></dd>
<dd><input
type=
"password"
id=
"txtPwdNewRe"
maxlength=
"1
28
"
/></dd>
</dl>
<p><label
class=
"lang"
lang=
"txtPwdRemind"
id=
"txtChangePassComment"
>
※スキップを選択すると、30日間このメッセージは表示されません
</label></p>
<p
class=
"loginbtn"
><a
class=
"change lang"
href=
"#"
id=
"dspPwdUpd1"
lang=
"dspChange"
>
変更
</a><a
class=
"skip lang"
href=
"#"
lang=
"dspSkip"
id=
"dspSkip"
>
スキップ
</a><a
class=
"cancel lang"
href=
"#"
lang=
"dspCancel"
id=
"dspCancel"
>
キャンセル
</a></p>
...
...
login.html
View file @
5c66731e
...
...
@@ -76,15 +76,15 @@
<dl>
<dt
class=
"lang"
lang=
"txtPwdCurr"
>
現在パスワード:
</dt>
<dd><input
type=
"password"
id=
"txtCurrentPass"
maxlength=
"1
6
"
/></dd>
<dd><input
type=
"password"
id=
"txtCurrentPass"
maxlength=
"1
28
"
/></dd>
</dl>
<dl>
<dt
class=
"lang"
lang=
"txtPwdNew"
>
変更パスワード:
</dt>
<dd><input
type=
"password"
id=
"txtNewPass"
maxlength=
"1
6
"
/></dd>
<dd><input
type=
"password"
id=
"txtNewPass"
maxlength=
"1
28
"
/></dd>
</dl>
<dl>
<dt
class=
"lang"
lang=
"txtPwdNewRe"
>
新パスワード(確認):
</dt>
<dd><input
type=
"password"
id=
"txtConfirmNew"
maxlength=
"1
6
"
/></dd>
<dd><input
type=
"password"
id=
"txtConfirmNew"
maxlength=
"1
28
"
/></dd>
</dl>
<p
class=
"lang memory"
lang=
"txtPwdRemind"
id=
"txtPwdRemind"
>
※スキップを選択すると、30日間このメッセージは表示されません
</p>
<p
class=
"loginbtn"
><a
class=
"skip lang"
id=
"btnSkip"
lang=
"dspSkip"
>
スキップ
</a><a
class=
"change lang"
id=
"btnChange"
lang=
"dspChange"
>
変更
</a></p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment