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
3279537d
Commit
3279537d
authored
Oct 18, 2022
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
フィードバック対応
parent
03e723b5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
69 deletions
+63
-69
abvw/common/js/common.js
+7
-0
abvw/common/js/constant.js
+14
-13
abvw/common/js/validation.js
+13
-11
abvw/common/json/sys/conf.json
+5
-3
abvw/js/login/login.js
+21
-37
abvw/js/setting/settings.js
+3
-5
No files found.
abvw/common/js/common.js
View file @
3279537d
...
@@ -432,6 +432,13 @@ var ClientData = {
...
@@ -432,6 +432,13 @@ var ClientData = {
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiLoginUrl
);
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_apiLoginUrl
);
}
}
},
},
conf_checkApiLoginUrl
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_checkApiLoginUrl
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
CONSTANT
.
KEYS
.
conf_checkApiLoginUrl
);
}
},
conf_apiResourceDlUrl
:
function
(
data
)
{
conf_apiResourceDlUrl
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiResourceDlUrl
,
data
);
SessionStorageUtils
.
set
(
CONSTANT
.
KEYS
.
conf_apiResourceDlUrl
,
data
);
...
...
abvw/common/js/constant.js
View file @
3279537d
...
@@ -71,34 +71,35 @@ CONSTANT.LANG = {
...
@@ -71,34 +71,35 @@ CONSTANT.LANG = {
CONSTANT
.
KEYS
=
{
CONSTANT
.
KEYS
=
{
userInfo_loginId
:
'loginId'
,
userInfo_loginId
:
'loginId'
,
// Local
:ユーザ情報(userInfo)_アカウントパス:
String
// Local
: UserInfo_Account Path:
String
userInfo_accountPath
:
'accountPath'
,
userInfo_accountPath
:
'accountPath'
,
// Local
:ユーザ情報(userInfo)_アカウント情報記憶フラグ:Char(Y:可能, N:不可
)
// Local
: UserInfo_Account Information Storage Flag: Char (Y: Yes, N: No
)
userInfo_rememberLogin
:
'rememberLogin'
,
userInfo_rememberLogin
:
'rememberLogin'
,
// Local
:ユーザ情報(userInfo)_最終ログイン日時:
Datetime
// Local
: UserInfo_Last login date and time:
Datetime
userInfo_lastLoginTime
:
'lastLoginTime'
,
userInfo_lastLoginTime
:
'lastLoginTime'
,
// Local
:ユーザ情報(userInfo)_パスワードスキップ日時:
Datetime
// Local
: UserInfo_Password Skip Date and Time:
Datetime
userInfo_pwdSkipDt
:
'pwdSkipDt'
,
userInfo_pwdSkipDt
:
'pwdSkipDt'
,
// Local
:ユーザオプション(userOpt)_動画繰り返しフラグ:Interger(0: 繰り返しなし, 1: 繰り返しあり
)
// Local
: User Options (userOpt)_Video Repeated Flag: Interger (0: No Repeated, 1: Repeated
)
// Session/local:
ユーザ情報(userInfo)_セッション
ID:String
// Session/local:
UserInfo_Session
ID:String
userInfo_sid
:
'sid'
,
userInfo_sid
:
'sid'
,
userInfo_sid_preview
:
'sidPreview'
,
userInfo_sid_preview
:
'sidPreview'
,
// Session
:事業者オプション(serviceOpt)_初回ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制
)
// Session
: Enterprise Option (serviceOpt)_Forced password change on first login: Integer (0: None, 1: Urgent, 2: Forced
)
serviceOpt_force_pw_change_on_login
:
'force_pw_change_on_login'
,
serviceOpt_force_pw_change_on_login
:
'force_pw_change_on_login'
,
// Session
:事業者オプション(serviceOpt)_定期ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制
)
// Session
: Enterprise Option (serviceOpt)_Forced password change on periodic login: Integer (0: None, 1: Urgent, 2: Forced
)
serviceOpt_force_pw_change_periodically
:
'force_pw_change_periodically'
,
serviceOpt_force_pw_change_periodically
:
'force_pw_change_periodically'
,
// Session:
事業者オプション(serviceOpt)_メモ・マーキングデータバックアップ使用:Char(Y:可能, N:不可
)
// Session:
Enterprise Options (serviceOpt)_Using Memo Marking Data Backup: Char (Y: Yes, N: No
)
userInfo_userName
:
'userInfo_userName'
,
userInfo_userName
:
'userInfo_userName'
,
// Local:
セッションID:
String
// Local:
Session ID:
String
userInfo_sid_bak
:
'sid_bak'
,
userInfo_sid_bak
:
'sid_bak'
,
// Session
:通知情報(pushInfo)_新着件数:
Interger
// Session
: Notification Information (pushInfo)_Number of new arrivals:
Interger
pushInfo_newMsgNumber
:
'pushInfo_newMsgNumber'
,
pushInfo_newMsgNumber
:
'pushInfo_newMsgNumber'
,
conf_apiUrl
:
'conf_apiUrl'
,
conf_apiUrl
:
'conf_apiUrl'
,
conf_apiLoginUrl
:
'conf_apiLoginUrl'
,
conf_apiLoginUrl
:
'conf_apiLoginUrl'
,
conf_checkApiLoginUrl
:
'conf_checkApiLoginUrl'
,
conf_apiResourceDlUrl
:
'conf_apiResourceDlUrl'
,
conf_apiResourceDlUrl
:
'conf_apiResourceDlUrl'
,
// Session :ABookCheck:Char
(Y:有効, N:無効
)
// Session :ABookCheck:Char
(Y: Yes, N: No
)
serviceOpt_abook_check
:
'abook_check'
,
serviceOpt_abook_check
:
'abook_check'
,
// Session
:事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可
)
// Session
: Enterprise Option (serviceOpt)_Any push message: Char (Y: Yes, N: No
)
serviceOpt_usable_push_message
:
'usable_push_message'
,
serviceOpt_usable_push_message
:
'usable_push_message'
,
// Local
// Local
IsJumpBack
:
'IsJumpBack'
,
IsJumpBack
:
'IsJumpBack'
,
...
...
abvw/common/js/validation.js
View file @
3279537d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
// =============================================================================================
// =============================================================================================
var
ValidationUtil
=
{
var
ValidationUtil
=
{
//
必須:
Text
//
Required
Text
CheckRequiredForText
:
function
(
value
)
{
CheckRequiredForText
:
function
(
value
)
{
if
(
value
==
null
||
value
==
''
)
{
if
(
value
==
null
||
value
==
''
)
{
...
@@ -31,14 +31,14 @@ var ValidationUtil = {
...
@@ -31,14 +31,14 @@ var ValidationUtil = {
return
count
;
return
count
;
},
},
//
最小文字数
//
check text min length
CheckMinLengthForByte
:
function
(
value
,
len
)
{
CheckMinLengthForByte
:
function
(
value
,
len
)
{
if
(
this
.
GetByteCount
(
value
)
<
len
)
if
(
this
.
GetByteCount
(
value
)
<
len
)
return
false
;
return
false
;
return
true
;
return
true
;
},
},
//
最大文字数
//
check text max length
CheckMaxLengthForByte
:
function
(
value
,
len
)
{
CheckMaxLengthForByte
:
function
(
value
,
len
)
{
if
(
this
.
GetByteCount
(
value
)
>
len
)
if
(
this
.
GetByteCount
(
value
)
>
len
)
...
@@ -46,26 +46,26 @@ var ValidationUtil = {
...
@@ -46,26 +46,26 @@ var ValidationUtil = {
return
true
;
return
true
;
},
},
//
半数字
//
check if the text is a number
IsNumber
:
function
(
value
)
{
IsNumber
:
function
(
value
)
{
var
reg
=
new
RegExp
(
"^[0-9]+$"
);
var
reg
=
new
RegExp
(
"^[0-9]+$"
);
return
reg
.
test
(
value
);
return
reg
.
test
(
value
);
},
},
//
半英字
//
check if the text is a alphabet
IsAlphabet
:
function
(
value
)
{
IsAlphabet
:
function
(
value
)
{
var
reg
=
new
RegExp
(
"^[a-zA-Z]+$"
);
var
reg
=
new
RegExp
(
"^[a-zA-Z]+$"
);
return
reg
.
test
(
value
);
return
reg
.
test
(
value
);
},
},
//
半記号
//
check if the text is a symbol
IsSymbol
:
function
(
value
)
{
IsSymbol
:
function
(
value
)
{
var
reg
=
new
RegExp
(
var
reg
=
new
RegExp
(
"
\
u005b
\
u005e
\
u0027
\
u0060
\
u0027
\
u007e
\
u0027
\
u0021
\
u0027
\
u0040
\
u0027
\
u0023
\
u0027
\
u0024
\
u0027
\
u0025
\
u0027
\
u005e
\
u0027
\
u0026
\
u0027
\
u002a
\
u0027
\
u0028
\
u0027
\
u0029
\
u0027
\
u005f
\
u0027
\
u002b
\
u0027
\
u003d
\
u0027
\
u007b
\
u0027
\
u007d
\
u0027
\
u007c
\
u0027
\
u003a
\
u0027
\
u0022
\
u0027
\
u003b
\
u0027
\
u0027
\
u0027
\
u003c
\
u0027
\
u003e
\
u0027
\
u003f
\
u0027
\
u002f
\
u0027
\
u002e
\
u0027
\
u002c
\
u005c
\
u002d
\
u005b
\
u005c
\
u005d
\
u005c
\
u005c
\
u005d"
);
"
\
u005b
\
u005e
\
u0027
\
u0060
\
u0027
\
u007e
\
u0027
\
u0021
\
u0027
\
u0040
\
u0027
\
u0023
\
u0027
\
u0024
\
u0027
\
u0025
\
u0027
\
u005e
\
u0027
\
u0026
\
u0027
\
u002a
\
u0027
\
u0028
\
u0027
\
u0029
\
u0027
\
u005f
\
u0027
\
u002b
\
u0027
\
u003d
\
u0027
\
u007b
\
u0027
\
u007d
\
u0027
\
u007c
\
u0027
\
u003a
\
u0027
\
u0022
\
u0027
\
u003b
\
u0027
\
u0027
\
u0027
\
u003c
\
u0027
\
u003e
\
u0027
\
u003f
\
u0027
\
u002f
\
u0027
\
u002e
\
u0027
\
u002c
\
u005c
\
u002d
\
u005b
\
u005c
\
u005d
\
u005c
\
u005c
\
u005d"
);
return
!
reg
.
test
(
value
);
return
!
reg
.
test
(
value
);
},
},
//
メール
//
check if the text is a emailAddress
CheckEmailValid
:
function
(
value
)
{
CheckEmailValid
:
function
(
value
)
{
// Check if string is a valid email address
// Check if string is a valid email address
var
reg
=
new
RegExp
(
"^[0-9a-zA-Z]+@[0-9a-zA-Z]+[
\\
.]{1}[0-9a-zA-Z]+[
\\
.]?[0-9a-zA-Z]+$"
);
var
reg
=
new
RegExp
(
"^[0-9a-zA-Z]+@[0-9a-zA-Z]+[
\\
.]{1}[0-9a-zA-Z]+[
\\
.]?[0-9a-zA-Z]+$"
);
...
@@ -110,19 +110,20 @@ var ValidationUtil = {
...
@@ -110,19 +110,20 @@ var ValidationUtil = {
return
false
;
return
false
;
},
},
//
半記号
//
Symbol check for password
IsPasswordSymbol
:
function
(
value
)
{
IsPasswordSymbol
:
function
(
value
)
{
var
reg
=
new
RegExp
(
"
\
u005b
\
u005e
\
u0027
\
u0023
\
u0027
\
u002b
\
u005c
\
u002d
\
u0027
\
u002e
\
u0027
\
u002f
\
u0027
\
u003a
\
u0027
\
u005f
\
u005d"
);
var
reg
=
new
RegExp
(
"
\
u005b
\
u005e
\
u0027
\
u0023
\
u0027
\
u002b
\
u005c
\
u002d
\
u0027
\
u002e
\
u0027
\
u002f
\
u0027
\
u003a
\
u0027
\
u005f
\
u005d"
);
return
!
reg
.
test
(
value
);
return
!
reg
.
test
(
value
);
},
},
//
半記号
//
text check for password(Alphabet Or Number Or Symbol)
IsPasswordAlphabetOrNumerOrSymbol
:
function
(
value
)
{
IsPasswordAlphabetOrNum
b
erOrSymbol
:
function
(
value
)
{
var
reg
=
new
RegExp
(
"
\
u005b
\
u005e
\
u0061
\
u002d
\
u007a
\
u0041
\
u002d
\
u005a
\
u0030
\
u002d
\
u0039
\
u0027
\
u0023
\
u0027
\
u002b
\
u005c
\
u002d
\
u0027
\
u002e
\
u0027
\
u002f
\
u0027
\
u003a
\
u0027
\
u005f
\
u005d"
);
var
reg
=
new
RegExp
(
"
\
u005b
\
u005e
\
u0061
\
u002d
\
u007a
\
u0041
\
u002d
\
u005a
\
u0030
\
u002d
\
u0039
\
u0027
\
u0023
\
u0027
\
u002b
\
u005c
\
u002d
\
u0027
\
u002e
\
u0027
\
u002f
\
u0027
\
u003a
\
u0027
\
u005f
\
u005d"
);
return
!
reg
.
test
(
value
);
return
!
reg
.
test
(
value
);
},
},
HasSeqChar
:
function
(
value
,
num
)
{
// Check at consecutive characters
HasSeqChar
:
function
(
str
,
num
)
{
var
count
=
0
;
var
count
=
0
;
var
prev
=
0
;
var
prev
=
0
;
...
@@ -143,6 +144,7 @@ var ValidationUtil = {
...
@@ -143,6 +144,7 @@ var ValidationUtil = {
return
false
;
return
false
;
},
},
// Check same characters in text
ContainSameSeqChar
:
function
(
str1
,
str2
,
num
)
{
ContainSameSeqChar
:
function
(
str1
,
str2
,
num
)
{
if
(
str2
.
length
<
num
||
str1
.
length
<
num
)
{
if
(
str2
.
length
<
num
||
str1
.
length
<
num
)
{
return
false
;
return
false
;
...
...
abvw/common/json/sys/conf.json
View file @
3279537d
{
{
"apiUrl"
:
"http://localhost:8080/acms/{0}/abvapi"
,
"apiUrl"
:
"http://localhost:8080/acms/{0}/abvapi"
,
"checkApiLoginUrl"
:
"http://localhost:8080/acms/{0}/checkapi/web"
,
"apiLoginUrl"
:
"http://localhost:8080/acms/nuabvapi"
,
"apiLoginUrl"
:
"http://localhost:8080/acms/nuabvapi"
,
"apiResourceDlUrl"
:
"http://localhost:8080/acms/{0}/dl"
,
"apiResourceDlUrl"
:
"http://localhost:8080/acms/{0}/dl"
,
"1apiUrl"
:
"https://abook189.abook.bz/acms/{0}/abvapi"
,
"1apiUrl"
:
"https://chatdev2.agentec.jp/acms/{0}/abvapi"
,
"1apiLoginUrl"
:
"https://abook189.abook.bz/acms/nuabvapi"
,
"1checkApiLoginUrl"
:
"https://chatdev2.agentec.jp/acms/{0}/checkapi/web"
,
"1apiResourceDlUrl"
:
"https://abook189.abook.bz/acms/{0}/dl"
,
"1apiLoginUrl"
:
"https://chatdev2.agentec.jp/acms/nuabvapi"
,
"1apiResourceDlUrl"
:
"https://chatdev2.agentec.jp/acms/{0}/dl"
,
"bookShelfCount"
:
15
,
"bookShelfCount"
:
15
,
"bookListCount"
:
15
,
"bookListCount"
:
15
,
"screenlockTimeDefault"
:
30
,
"screenlockTimeDefault"
:
30
,
...
...
abvw/js/login/login.js
View file @
3279537d
//
グローバルの名前空間用のオブジェクトを用意する
//
prepared to use Global object(LOGIN)
var
LOGIN
=
{};
var
LOGIN
=
{};
// var requirePasswordChange;
// var requirePasswordChange;
...
@@ -39,15 +39,13 @@ LOGIN.saveLoginInfo = function() {
...
@@ -39,15 +39,13 @@ LOGIN.saveLoginInfo = function() {
// load language
// load language
I18N
.
changeLanguage
(
lang
);
I18N
.
changeLanguage
(
lang
);
// Set flag コンテンツデータチェックフラグ = true to sync local with server
// ClientData.common_contentDataChkFlg(true);
var
accountPath
,
loginId
,
password
;
var
accountPath
,
loginId
,
password
;
var
chkRemember
=
$
(
'#chkRemember'
).
attr
(
'checked'
);
var
chkRemember
=
$
(
'#chkRemember'
).
attr
(
'checked'
);
accountPath
=
$
(
'#txtAccPath'
).
val
();
accountPath
=
$
(
'#txtAccPath'
).
val
();
loginId
=
$
(
'#txtAccId'
).
val
();
loginId
=
$
(
'#txtAccId'
).
val
();
password
=
$
(
'#txtPassword'
).
val
();
password
=
$
(
'#txtPassword'
).
val
();
// save user data to local storage
var
date
=
new
Date
();
var
date
=
new
Date
();
ClientData
.
userInfo_accountPath
(
accountPath
);
ClientData
.
userInfo_accountPath
(
accountPath
);
ClientData
.
userInfo_loginId
(
loginId
);
ClientData
.
userInfo_loginId
(
loginId
);
...
@@ -62,11 +60,11 @@ LOGIN.saveLoginInfo = function() {
...
@@ -62,11 +60,11 @@ LOGIN.saveLoginInfo = function() {
ClientData
.
userInfo_lastLoginTime
(
date
.
jpDateTimeString
());
ClientData
.
userInfo_lastLoginTime
(
date
.
jpDateTimeString
());
ClientData
.
userInfo_sid_local
(
LOGIN
.
userinfo_sid
);
ClientData
.
userInfo_sid_local
(
LOGIN
.
userinfo_sid
);
//
バックアップにも保持
//
save sid for backup
ClientData
.
userInfo_sid_local_bak
(
LOGIN
.
userinfo_sid
);
ClientData
.
userInfo_sid_local_bak
(
LOGIN
.
userinfo_sid
);
LOGIN
.
saveServiceUserOption
();
LOGIN
.
saveServiceUserOption
();
//
ページジャンプ設定をクリア
//
reset to paging function
ClientData
.
JumpQueue
([]);
ClientData
.
JumpQueue
([]);
ClientData
.
IsJumpBack
(
false
);
ClientData
.
IsJumpBack
(
false
);
...
@@ -75,11 +73,6 @@ LOGIN.saveLoginInfo = function() {
...
@@ -75,11 +73,6 @@ LOGIN.saveLoginInfo = function() {
// Check validation
// Check validation
LOGIN
.
checkValidation
=
function
()
{
LOGIN
.
checkValidation
=
function
()
{
// 暗号化モードならチェック無し
// if (ClientData.serviceOpt_encryption() == 'Y') {
// return true;
// }
var
accountPath
=
$
(
'#txtAccPath'
).
val
();
var
accountPath
=
$
(
'#txtAccPath'
).
val
();
var
loginId
=
$
(
'#txtAccId'
).
val
();
var
loginId
=
$
(
'#txtAccId'
).
val
();
var
password
=
$
(
'#txtPassword'
).
val
();
var
password
=
$
(
'#txtPassword'
).
val
();
...
@@ -160,16 +153,13 @@ LOGIN.processLogin = function() {
...
@@ -160,16 +153,13 @@ LOGIN.processLogin = function() {
urlpath
:
accountPath
urlpath
:
accountPath
};
};
// 引数パラメータがあれば取得
// var paramContentID = COMMON.getUrlParam('cid', '');
// Set sid for login, this will be checked authoring 2 sessions
// Set sid for login, this will be checked authoring 2 sessions
if
(
ClientData
.
userInfo_sid_local
())
{
if
(
ClientData
.
userInfo_sid_local
())
{
params
.
previousSid
=
ClientData
.
userInfo_sid_local
();
params
.
previousSid
=
ClientData
.
userInfo_sid_local
();
}
}
// Get url to login
// Get url to login
var
apiLoginUrl
=
ClientData
.
conf_
a
piLoginUrl
();
// sysSettings.apiLoginUrl;
var
apiLoginUrl
=
ClientData
.
conf_
checkA
piLoginUrl
();
// sysSettings.apiLoginUrl;
COMMON
.
callCmsApi
(
apiLoginUrl
,
null
,
'webClientLogin'
,
'GET'
,
params
,
true
,
function
(
data
)
{
COMMON
.
callCmsApi
(
apiLoginUrl
,
null
,
'webClientLogin'
,
'GET'
,
params
,
true
,
function
(
data
)
{
LOGIN
.
userinfo_sid
=
data
.
sid
;
LOGIN
.
userinfo_sid
=
data
.
sid
;
...
@@ -186,10 +176,6 @@ LOGIN.processLogin = function() {
...
@@ -186,10 +176,6 @@ LOGIN.processLogin = function() {
$
(
'#main-error-message'
).
css
(
'display'
,
'none'
);
$
(
'#main-error-message'
).
css
(
'display'
,
'none'
);
// if (ClientData.serviceOpt_encryption() == 'Y') {
// data.requirePasswordChange = 0;
// }
console
.
log
(
"data.requirePasswordChange:"
+
data
.
requirePasswordChange
);
console
.
log
(
"data.requirePasswordChange:"
+
data
.
requirePasswordChange
);
console
.
log
(
"ClientData.serviceOpt_abook_check:"
+
ClientData
.
serviceOpt_abook_check
());
console
.
log
(
"ClientData.serviceOpt_abook_check:"
+
ClientData
.
serviceOpt_abook_check
());
...
@@ -197,7 +183,7 @@ LOGIN.processLogin = function() {
...
@@ -197,7 +183,7 @@ LOGIN.processLogin = function() {
if
(
data
.
requirePasswordChange
==
0
)
{
if
(
data
.
requirePasswordChange
==
0
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
ホームへ移動
//
move to home.html page
COMMON
.
avwScreenMove
(
"index.html"
);
COMMON
.
avwScreenMove
(
"index.html"
);
}
else
if
(
data
.
requirePasswordChange
==
1
)
{
}
else
if
(
data
.
requirePasswordChange
==
1
)
{
...
@@ -226,7 +212,7 @@ LOGIN.processLogin = function() {
...
@@ -226,7 +212,7 @@ LOGIN.processLogin = function() {
if
(
numDay
<=
30
)
{
if
(
numDay
<=
30
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
ホームへ移動
//
move to home.html page
COMMON
.
avwScreenMove
(
"index.html"
);
COMMON
.
avwScreenMove
(
"index.html"
);
}
else
if
(
numDay
>
30
)
{
}
else
if
(
numDay
>
30
)
{
LOGIN
.
OpenChangePasswordDialog
();
LOGIN
.
OpenChangePasswordDialog
();
...
@@ -237,7 +223,7 @@ LOGIN.processLogin = function() {
...
@@ -237,7 +223,7 @@ LOGIN.processLogin = function() {
}
else
{
// no need to change password
}
else
{
// no need to change password
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
ホームへ移動
//
move to home.html page
COMMON
.
avwScreenMove
(
"index.html"
);
COMMON
.
avwScreenMove
(
"index.html"
);
}
}
}
else
if
(
data
.
requirePasswordChange
==
2
)
{
}
else
if
(
data
.
requirePasswordChange
==
2
)
{
...
@@ -260,7 +246,7 @@ LOGIN.processLogin = function() {
...
@@ -260,7 +246,7 @@ LOGIN.processLogin = function() {
if
(
numDay
<=
30
)
{
if
(
numDay
<=
30
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
ホームへ移動
//
move to home.html page
COMMON
.
avwScreenMove
(
"index.html"
);
COMMON
.
avwScreenMove
(
"index.html"
);
}
else
if
(
numDay
>
30
)
{
}
else
if
(
numDay
>
30
)
{
...
@@ -278,7 +264,7 @@ LOGIN.processLogin = function() {
...
@@ -278,7 +264,7 @@ LOGIN.processLogin = function() {
$
(
"#txtPwdRemind"
).
css
(
'visibility'
,
'hidden'
);
$
(
"#txtPwdRemind"
).
css
(
'visibility'
,
'hidden'
);
}
else
{
// No need to change password
}
else
{
// No need to change password
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
ホームへ移動
//
move to home.html page
COMMON
.
avwScreenMove
(
"index.html"
);
COMMON
.
avwScreenMove
(
"index.html"
);
}
}
}
}
...
@@ -326,7 +312,7 @@ LOGIN.changePasswordProcess = function() {
...
@@ -326,7 +312,7 @@ LOGIN.changePasswordProcess = function() {
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
if
(
ClientData
.
serviceOpt_abook_check
()
==
'Y'
)
{
if
(
ClientData
.
serviceOpt_abook_check
()
==
'Y'
)
{
//
ホームへ移動
//
move to home.html page
COMMON
.
avwScreenMove
(
"index.html"
);
COMMON
.
avwScreenMove
(
"index.html"
);
}
else
{
}
else
{
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
'E001'
));
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
'E001'
));
...
@@ -352,7 +338,6 @@ LOGIN.changePasswordProcess = function() {
...
@@ -352,7 +338,6 @@ LOGIN.changePasswordProcess = function() {
LOGIN
.
changeLanguageJa
=
function
()
{
LOGIN
.
changeLanguageJa
=
function
()
{
I18N
.
changeLanguage
(
CONSTANT
.
LANG
.
JAPAN
);
I18N
.
changeLanguage
(
CONSTANT
.
LANG
.
JAPAN
);
document
.
title
=
I18N
.
i18nText
(
'dspLogin'
)
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
document
.
title
=
I18N
.
i18nText
(
'dspLogin'
)
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
// ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ja);
if
(
LOGIN
.
login_errorMessage
!=
""
)
{
if
(
LOGIN
.
login_errorMessage
!=
""
)
{
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
LOGIN
.
login_errorMessage
).
toString
());
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
LOGIN
.
login_errorMessage
).
toString
());
}
}
...
@@ -362,7 +347,6 @@ LOGIN.changeLanguageJa = function() {
...
@@ -362,7 +347,6 @@ LOGIN.changeLanguageJa = function() {
LOGIN
.
changeLanguageKo
=
function
()
{
LOGIN
.
changeLanguageKo
=
function
()
{
I18N
.
changeLanguage
(
CONSTANT
.
LANG
.
KOREA
);
I18N
.
changeLanguage
(
CONSTANT
.
LANG
.
KOREA
);
document
.
title
=
I18N
.
i18nText
(
'dspLogin'
)
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
document
.
title
=
I18N
.
i18nText
(
'dspLogin'
)
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
// ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ko);
if
(
LOGIN
.
login_errorMessage
!=
""
)
{
if
(
LOGIN
.
login_errorMessage
!=
""
)
{
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
LOGIN
.
login_errorMessage
).
toString
());
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
LOGIN
.
login_errorMessage
).
toString
());
}
}
...
@@ -372,7 +356,6 @@ LOGIN.changeLanguageKo = function() {
...
@@ -372,7 +356,6 @@ LOGIN.changeLanguageKo = function() {
LOGIN
.
changeLanguageEn
=
function
()
{
LOGIN
.
changeLanguageEn
=
function
()
{
I18N
.
changeLanguage
(
CONSTANT
.
LANG
.
ENGLISH
);
I18N
.
changeLanguage
(
CONSTANT
.
LANG
.
ENGLISH
);
document
.
title
=
I18N
.
i18nText
(
'dspLogin'
)
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
document
.
title
=
I18N
.
i18nText
(
'dspLogin'
)
+
' | '
+
I18N
.
i18nText
(
'sysAppTitle'
);
// ClientData.userInfo_language(COMMON.Consts.ConstLanguage_En);
if
(
LOGIN
.
login_errorMessage
!=
""
)
{
if
(
LOGIN
.
login_errorMessage
!=
""
)
{
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
LOGIN
.
login_errorMessage
).
toString
());
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
LOGIN
.
login_errorMessage
).
toString
());
}
}
...
@@ -400,7 +383,7 @@ LOGIN.skipPassFunction = function() {
...
@@ -400,7 +383,7 @@ LOGIN.skipPassFunction = function() {
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
if
(
ClientData
.
serviceOpt_abook_check
()
==
'Y'
)
{
if
(
ClientData
.
serviceOpt_abook_check
()
==
'Y'
)
{
//
ホームへ移動
//
move to home.html page
COMMON
.
avwScreenMove
(
"index.html"
);
COMMON
.
avwScreenMove
(
"index.html"
);
}
else
{
}
else
{
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
'E001'
));
$
(
'#main-error-message'
).
html
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
'E001'
));
...
@@ -517,7 +500,7 @@ LOGIN.showAlertScreen = function(errMes, scrMove) {
...
@@ -517,7 +500,7 @@ LOGIN.showAlertScreen = function(errMes, scrMove) {
// $(document).ready(function (e) {
// $(document).ready(function (e) {
LOGIN
.
ready
=
function
()
{
LOGIN
.
ready
=
function
()
{
//
セッションストレージクリア
//
Session Storage clear
SessionStorageUtils
.
clear
();
SessionStorageUtils
.
clear
();
COMMON
.
userSessionObj
=
null
;
COMMON
.
userSessionObj
=
null
;
// create new session
// create new session
...
@@ -526,21 +509,22 @@ LOGIN.ready = function() {
...
@@ -526,21 +509,22 @@ LOGIN.ready = function() {
var
sysSettings
=
COMMON
.
sysSetting
();
// get info in conf.json
var
sysSettings
=
COMMON
.
sysSetting
();
// get info in conf.json
//
getitsサーバー設定確認
//
check an getits setting
if
(
sysSettings
.
apiUrl
==
""
)
{
if
(
sysSettings
.
apiUrl
==
""
)
{
//
引数パラメータを取得
//
acquire parameters
var
siteUrl
=
COMMON
.
getUrlParam
(
'siteUrl'
,
''
);
var
siteUrl
=
COMMON
.
getUrlParam
(
'siteUrl'
,
''
);
var
urlPath
=
COMMON
.
getUrlParam
(
'urlPath'
,
''
);
var
urlPath
=
COMMON
.
getUrlParam
(
'urlPath'
,
''
);
var
storeUrl
=
COMMON
.
getUrlParam
(
'storeUrl'
,
''
);
var
storeUrl
=
COMMON
.
getUrlParam
(
'storeUrl'
,
''
);
if
(
siteUrl
!=
""
&&
urlPath
!=
""
)
{
if
(
siteUrl
!=
""
&&
urlPath
!=
""
)
{
// ClientData.siteUrl(siteUrl);
// ClientData.siteUrl(siteUrl);
//
api接続先設定
//
set api connection
ClientData
.
conf_apiUrl
(
siteUrl
+
"{0}/abvapi"
);
ClientData
.
conf_apiUrl
(
siteUrl
+
"{0}/abvapi"
);
ClientData
.
conf_apiLoginUrl
(
siteUrl
+
"nuabvapi"
);
ClientData
.
conf_apiLoginUrl
(
siteUrl
+
"nuabvapi"
);
ClientData
.
conf_checkApiLoginUrl
(
siteUrl
+
"checkapi/web"
);
ClientData
.
conf_apiResourceDlUrl
(
siteUrl
+
"{0}/dl"
);
ClientData
.
conf_apiResourceDlUrl
(
siteUrl
+
"{0}/dl"
);
//
アカウント関連
//
set account setting value
ClientData
.
userInfo_accountPath
(
urlPath
);
ClientData
.
userInfo_accountPath
(
urlPath
);
ClientData
.
userInfo_accountPath_session
(
urlPath
);
ClientData
.
userInfo_accountPath_session
(
urlPath
);
ClientData
.
userInfo_loginId
(
""
);
ClientData
.
userInfo_loginId
(
""
);
...
@@ -549,13 +533,14 @@ LOGIN.ready = function() {
...
@@ -549,13 +533,14 @@ LOGIN.ready = function() {
}
}
}
else
{
}
else
{
// conf
のパラメータセット
// conf
parameter set
ClientData
.
conf_apiUrl
(
sysSettings
.
apiUrl
);
ClientData
.
conf_apiUrl
(
sysSettings
.
apiUrl
);
ClientData
.
conf_checkApiLoginUrl
(
sysSettings
.
checkApiLoginUrl
);
ClientData
.
conf_apiLoginUrl
(
sysSettings
.
apiLoginUrl
);
ClientData
.
conf_apiLoginUrl
(
sysSettings
.
apiLoginUrl
);
ClientData
.
conf_apiResourceDlUrl
(
sysSettings
.
apiResourceDlUrl
);
ClientData
.
conf_apiResourceDlUrl
(
sysSettings
.
apiResourceDlUrl
);
}
}
//
引数でアカウントパスを受け取ったらセットする
//
Set when you receive the account path with the argument
$
(
'#normalUser'
).
show
();
$
(
'#normalUser'
).
show
();
$
(
'#formlogin'
).
hide
();
$
(
'#formlogin'
).
hide
();
...
@@ -575,5 +560,4 @@ LOGIN.ready = function() {
...
@@ -575,5 +560,4 @@ LOGIN.ready = function() {
});
});
LOGIN
.
initLoginNormalUser
();
LOGIN
.
initLoginNormalUser
();
};
};
// });
abvw/js/setting/settings.js
View file @
3279537d
...
@@ -784,16 +784,14 @@ SETTINGS.dspPwdUpd1_Click = function(e) {
...
@@ -784,16 +784,14 @@ SETTINGS.dspPwdUpd1_Click = function(e) {
if
(
!
ValidationUtil
.
IsAlphabetOrNumberOrSymbol
(
SETTINGS
.
getNewPasswordRe
()))
{
if
(
!
ValidationUtil
.
IsAlphabetOrNumberOrSymbol
(
SETTINGS
.
getNewPasswordRe
()))
{
isOK
=
false
;
isOK
=
false
;
}
}
//
連続3文字以上チェック
//
Check at least 3 consecutive characters
if
(
!
ValidationUtil
.
HasSeqChar
(
SETTINGS
.
getNewPassword
()))
{
if
(
!
ValidationUtil
.
HasSeqChar
(
SETTINGS
.
getNewPassword
()
,
3
))
{
isOK
=
false
;
isOK
=
false
;
}
}
//
前回と4文字連続一致
//
Check 4 same characters in before password
if
(
!
ValidationUtil
.
ContainSameSeqChar
(
SETTINGS
.
getCurrentPassword
(),
SETTINGS
.
getNewPassword
(),
4
))
{
if
(
!
ValidationUtil
.
ContainSameSeqChar
(
SETTINGS
.
getCurrentPassword
(),
SETTINGS
.
getNewPassword
(),
4
))
{
isOK
=
false
;
isOK
=
false
;
}
}
var
str
=
SETTINGS
.
getCurrentPassword
()
+
""
;
}
}
// Do changing password
// Do changing password
...
...
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