My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
79
attachment: user_authenticate?.patch
(723 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/user.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/user.rb (revision 79)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/user.rb (working copy)
@@ -39,10 +39,11 @@
def self.authenticate?(login, pass)
user = self.authenticate(login, pass)
- return false if user.nil?
- return true if user.login == login
-
- false
+ if !user.nil? && user.login == login
+ return true
+ else
+ false
+ end
end
# Sets roles by list of id's passed in
Powered by
Google Project Hosting