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
d53a1c63
Commit
d53a1c63
authored
Sep 08, 2020
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#29682 【Biz Web 1.9.0】パスワード変更時のエラーメッセージ表現が適切でない
parent
0d8b66ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
abvw/js/login.js
+9
-3
abvw/js/settings.js
+12
-7
No files found.
abvw/js/login.js
View file @
d53a1c63
...
@@ -119,7 +119,11 @@ LOGIN.checkDialogValidation = function() {
...
@@ -119,7 +119,11 @@ LOGIN.checkDialogValidation = function() {
var
confirmPass
=
$
(
'#txtConfirmNew'
).
val
();
var
confirmPass
=
$
(
'#txtConfirmNew'
).
val
();
var
msgError
=
$
(
'#dialog-error-message'
);
var
msgError
=
$
(
'#dialog-error-message'
);
if
(
!
ValidationUtil
.
CheckRequiredForText
(
currentPass
))
{
if
(
!
newPass
.
match
(
"^(?=.*[a-zA-Z])(?=.*[0-9])"
))
{
isOK
=
false
;
msgError
.
html
(
I18N
.
i18nText
(
'msgPwdChangeNG'
));
msgError
.
show
();
}
else
if
(
!
ValidationUtil
.
CheckRequiredForText
(
currentPass
))
{
LOGIN
.
login_errorMessage
=
""
;
LOGIN
.
login_errorMessage
=
""
;
msgError
.
html
(
I18N
.
i18nText
(
'msgPwdEmpty'
));
msgError
.
html
(
I18N
.
i18nText
(
'msgPwdEmpty'
));
msgError
.
attr
(
'lang'
,
'msgPwdEmpty'
);
msgError
.
attr
(
'lang'
,
'msgPwdEmpty'
);
...
@@ -367,8 +371,10 @@ LOGIN.changePasswordProcess = function() {
...
@@ -367,8 +371,10 @@ LOGIN.changePasswordProcess = function() {
}
}
},
function
(
xhr
,
b
,
c
)
{
},
function
(
xhr
,
b
,
c
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
//$('#dialog-error-message').html(JSON.parse(xhr.responseText).errorMessage);
$
(
'#dialog-error-message'
).
html
(
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
);
$
(
'#dialog-error-message'
).
html
(
I18N
.
i18nText
(
'msgPwdOldWrong'
));
if
(
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
==
"SC_FORBIDDEN"
){
$
(
'#dialog-error-message'
).
html
(
I18N
.
i18nText
(
'msgPwdOldWrong'
));
}
$
(
'#dialog-error-message'
).
show
();
$
(
'#dialog-error-message'
).
show
();
}
else
{
}
else
{
// Show systemerror
// Show systemerror
...
...
abvw/js/settings.js
View file @
d53a1c63
...
@@ -738,8 +738,13 @@ SETTINGS.dspOptRes_Click = function(e) {
...
@@ -738,8 +738,13 @@ SETTINGS.dspOptRes_Click = function(e) {
SETTINGS
.
dspPwdUpd1_Click
=
function
(
e
)
{
SETTINGS
.
dspPwdUpd1_Click
=
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
var
isOK
=
true
;
var
isOK
=
true
;
var
msgError
=
$
(
'#dialog-error-message'
);
var
msgError
=
$
(
'#dialog-error-message'
);
// Check validation
// Check validation
if
(
!
SETTINGS
.
getNewPassword
().
match
(
"^(?=.*[a-zA-Z])(?=.*[0-9])"
))
{
isOK
=
false
;
msgError
.
html
(
I18N
.
i18nText
(
'msgPwdChangeNG'
));
msgError
.
show
();
}
if
(
!
ValidationUtil
.
CheckRequiredForText
(
SETTINGS
.
getCurrentPassword
()))
{
if
(
!
ValidationUtil
.
CheckRequiredForText
(
SETTINGS
.
getCurrentPassword
()))
{
isOK
=
false
;
isOK
=
false
;
msgError
.
html
(
I18N
.
i18nText
(
'msgPwdEmpty'
));
msgError
.
html
(
I18N
.
i18nText
(
'msgPwdEmpty'
));
...
@@ -834,13 +839,13 @@ SETTINGS.avwCmsApi_passwordChange_success = function(data) {
...
@@ -834,13 +839,13 @@ SETTINGS.avwCmsApi_passwordChange_success = function(data) {
SETTINGS
.
avwCmsApi_passwordChange_fail
=
function
(
xhr
,
b
,
c
)
{
SETTINGS
.
avwCmsApi_passwordChange_fail
=
function
(
xhr
,
b
,
c
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
if
(
xhr
.
responseText
&&
xhr
.
status
!=
0
)
{
/* show error messages */
/* show error messages */
//
var msgError = $('#dialog-error-message');
var
msgError
=
$
(
'#dialog-error-message'
);
//msgError.html(I18N.i18nText('msgPwdChangeNG'));
//msgError.html(I18N.i18nText('msgPwdChangeNG'));
//
msgError.html(JSON.parse(xhr.responseText).errorMessage);
msgError
.
html
(
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
);
//msgError.show();
if
(
JSON
.
parse
(
xhr
.
responseText
).
errorMessage
==
"SC_FORBIDDEN"
){
msgError
.
html
(
I18N
.
i18nText
(
'msgPwdOldWrong'
));
$
(
'#dialog-error-message'
).
html
(
I18N
.
i18nText
(
'msgPwdOldWrong'
));
}
$
(
'#dialog-error-message'
)
.
show
();
msgError
.
show
();
}
}
else
{
else
{
AVWEB
.
showSystemError
();
AVWEB
.
showSystemError
();
...
...
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