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 1b4f025e
authored
Mar 21, 2010
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trylogin
1 parent
2a7c9cde
Show 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 @
1b4f025
...
...
@@ -91,7 +91,13 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
}
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
()
{
...
...
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