public
Description: HomeMarks is a web based GUI to build HTML start pages.
Homepage: http://www.homemarks.com/
Clone URL: git://github.com/metaskills/homemarks.git
Search Repo:
Click here to lend your support to: homemarks and make a donation at www.pledgie.com !
Fixing an undeeded flash in the SessionController create action.
metaskills (author)
Wed May 14 18:13:33 -0700 2008
commit  78f43364768cdd29ece52680ecad35f3b228951f
tree    f7567a59a9059b2a4ecc8b19293f35d2973afa8f
parent  5e0a0fc476f3b84fe4a4c63724ceff5d29887cb2
...
12
13
14
15
16
17
18
19
 
 
20
21
22
...
12
13
14
 
 
 
 
 
15
16
17
18
19
0
@@ -12,11 +12,8 @@
0
   
0
   def create
0
     self.current_user = User.authenticate(params[:email], params[:password])
0
- if logged_in?
0
- head :ok
0
- else
0
- render :json => login_failures, :status => :unauthorized, :content_type => 'application/json'
0
- end
0
+ return head :ok if logged_in?
0
+ render :json => login_failures, :status => :unauthorized, :content_type => 'application/json'
0
   end
0
   
0
   def jumpin
...
26
27
28
29
30
31
32
...
26
27
28
 
29
30
31
0
@@ -26,7 +26,6 @@
0
     should 'login as bob' do
0
       xhr_login
0
       assert_good_login
0
- assert_equal 'Login Successful!', flash[:good]
0
       assert_response :ok
0
     end
0
     

Comments

    No one has commented yet.