Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fe2fdcfd
authored
Dec 09, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'password-change-fix' into 'master'
Password change fix See merge request !151
2 parents
dbf85ec8
a8f95832
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/user/PasswordView.java
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/user/PasswordView.java
View file @
fe2fdcf
...
@@ -58,7 +58,8 @@ public class PasswordView extends GenericCDIView {
...
@@ -58,7 +58,8 @@ public class PasswordView extends GenericCDIView {
boolean
mod
=
permbean
.
hasPermission
(
UserPermission
.
MODIFY
);
boolean
mod
=
permbean
.
hasPermission
(
UserPermission
.
MODIFY
);
if
(
permbean
.
isCurrentUser
(
user
)
||
mod
)
{
if
(
permbean
.
isCurrentUser
(
user
)
||
mod
)
{
logger
.
debug
(
"foo {}, {}"
,
mod
,
user
.
checkPassword
(
oldPassword
));
logger
.
debug
(
"foo {}, {}"
,
mod
,
user
.
checkPassword
(
oldPassword
));
if
(!
mod
&&
!
user
.
checkPassword
(
oldPassword
))
{
if
(!
user
.
checkPassword
(
oldPassword
))
{
super
.
addFaceMessage
(
"userview.oldPasswordError"
);
super
.
addFaceMessage
(
"userview.oldPasswordError"
);
}
else
if
(
password
==
null
||
!
password
.
equals
(
passwordcheck
))
{
}
else
if
(
password
==
null
||
!
password
.
equals
(
passwordcheck
))
{
super
.
addFaceMessage
(
"userview.passwordsDontMatch"
);
super
.
addFaceMessage
(
"userview.passwordsDontMatch"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment