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
fcb846ea
Commit
fcb846ea
authored
Aug 22, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#13224 PW変更 更新禁止時、許可グループユーザはPW変更可能にする
parent
5ee3396a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
9 deletions
+40
-9
abvw/common/js/common.js
+32
-0
abvw/js/bookmark.js
+1
-1
abvw/js/contentsearch.js
+1
-1
abvw/js/history.js
+1
-1
abvw/js/home.js
+1
-1
abvw/js/login.js
+1
-2
abvw/js/settings.js
+2
-2
abvw/settings.html
+1
-1
No files found.
abvw/common/js/common.js
View file @
fcb846ea
...
...
@@ -2250,3 +2250,35 @@ function ToogleLogoutNortice() {
avwSetLogoutNortice
();
}
};
//パスワード変更禁止でも許可グループに所属しているかAPIで確認する
function
canPasswordChange
(
changePw
,
paramSid
)
{
if
(
changePw
!=
'N'
){
return
true
;
}
if
(
!
paramSid
){
paramSid
=
ClientData
.
userInfo_sid
();
}
var
result
=
false
;
var
params
=
{
sid
:
paramSid
};
var
sysSettings
=
avwSysSetting
();
avwCmsApiSyncWithUrl
(
sysSettings
.
apiUrl
,
ClientData
.
userInfo_accountPath
(),
'allowPWChange'
,
'GET'
,
params
,
function
(
data
)
{
if
(
data
.
result
==
'OK'
)
{
result
=
true
;
}
},
function
(
xhr
,
b
,
c
)
{
//エラー 変更不可にする
}
);
return
result
;
};
abvw/js/bookmark.js
View file @
fcb846ea
...
...
@@ -35,7 +35,7 @@ $(document).ready(function () {
ClientData
.
BookmarkScreen
(
ScreenIds
.
BookmarkList
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
){
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
canPasswordChange
(
ClientData
.
serviceOpt_change_pw
())
==
false
){
// Synchronize bookmarks with server
SyncContent
();
...
...
abvw/js/contentsearch.js
View file @
fcb846ea
...
...
@@ -53,7 +53,7 @@ $(document).ready(function(){
ClientData
.
BookmarkScreen
(
ScreenIds
.
ContentSearch
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
){
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
canPasswordChange
(
ClientData
.
serviceOpt_change_pw
())
==
false
){
//Format text display more record
formatDisplayMoreRecord
();
...
...
abvw/js/history.js
View file @
fcb846ea
...
...
@@ -52,7 +52,7 @@ $(document).ready(function(){
ClientData
.
BookmarkScreen
(
ScreenIds
.
History
);
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
){
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
canPasswordChange
(
ClientData
.
serviceOpt_change_pw
())
==
false
){
if
(
ClientData
.
ReadingContentIds
()
==
null
||
ClientData
.
ReadingContentIds
()
==
'undefined'
||
ClientData
.
ReadingContentIds
().
length
==
0
){
}
else
{
syncReadingContent
();
...
...
abvw/js/home.js
View file @
fcb846ea
...
...
@@ -59,7 +59,7 @@ $(document).ready(function () {
ClientData
.
BookmarkScreen
(
ScreenIds
.
Home
);
//Check if Force Change password
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
ClientData
.
serviceOpt_change_pw
()
==
'N'
)
{
if
(
ClientData
.
requirePasswordChange
()
!=
1
||
canPasswordChange
(
ClientData
.
serviceOpt_change_pw
())
==
false
)
{
// Register log
RegisterLog
();
...
...
abvw/js/login.js
View file @
fcb846ea
...
...
@@ -232,12 +232,11 @@ function processLogin() {
$
(
'#main-error-message'
).
css
(
'display'
,
'none'
);
if
(
data
.
requirePasswordChange
==
0
||
c
hange_pw
==
'N'
)
{
if
(
data
.
requirePasswordChange
==
0
||
c
anPasswordChange
(
change_pw
,
ClientData
.
userInfo_sid_local
())
==
false
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
avwScreenMove
(
"abvw/"
+
ScreenIds
.
Home
);
}
else
if
(
data
.
requirePasswordChange
==
1
)
{
if
(
force_pw_change_on_login
==
2
)
{
// force to change password
OpenChangePasswordDialog
();
$
(
".ui-dialog-titlebar"
).
hide
();
...
...
abvw/js/settings.js
View file @
fcb846ea
...
...
@@ -59,8 +59,8 @@ $(document).ready(function () {
$
(
"#dspOptBk"
).
hide
();
}
if
(
ClientData
.
serviceOpt_change_pw
()
==
'N'
)
{
$
(
"#dspPwdUpd"
).
hide
(
);
if
(
canPasswordChange
(
ClientData
.
serviceOpt_change_pw
())
==
true
)
{
$
(
"#dspPwdUpd"
).
css
(
'visibility'
,
''
);
}
else
{
// Get flag to determine must change password
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"requirePasswordChange"
,
'GET'
,
{
sid
:
ClientData
.
userInfo_sid
()
},
...
...
abvw/settings.html
View file @
fcb846ea
...
...
@@ -90,7 +90,7 @@
<div
class=
"lang label"
lang=
"txtLoginAccPath"
>
アカウントパス:
</div><div
class=
"show"
id=
"txtLoginPath"
>
...
</div>
<br
/>
<div
class=
"lang label"
lang=
"txtLastLoginTime"
>
最終ログイン時間:
</div><div
class=
"show"
id=
"txtLastLoginTime"
>
...
</div>
<p
class=
"passchgbtn"
><a
href=
"#"
class=
"lang"
id=
"dspPwdUpd"
lang=
"dspPwdUpd"
>
パスワード変更
</a></p>
<p
class=
"passchgbtn"
><a
href=
"#"
class=
"lang"
id=
"dspPwdUpd"
lang=
"dspPwdUpd"
style=
"visibility:hidden;"
>
パスワード変更
</a></p>
</div>
<div
id=
"user_option"
>
<h3
class=
"lang"
lang=
"txtOpt"
>
オプション
</h3>
...
...
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