Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5fd77e44
authored
Mar 21, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.intra.insomnia.fi:/data/bortal
2 parents
35d72c82
1b4f025e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/SessionHandlerBean.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/SessionHandlerBean.java
View file @
5fd77e4
...
@@ -91,7 +91,13 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
...
@@ -91,7 +91,13 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
}
}
public
User
tryLogin
(
String
username
,
String
password
)
{
public
User
tryLogin
(
String
username
,
String
password
)
{
throw
new
UnsupportedOperationException
(
"Not supported yet."
);
User
user
=
userfacade
.
findByLogin
(
username
.
trim
());
if
(
User
.
hashPassword
(
password
).
equals
(
user
.
getPassword
()))
{
return
user
;
}
return
null
;
}
}
public
User
getDefaultUser
()
{
public
User
getDefaultUser
()
{
...
...
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