puavo_authentication 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  class SessionsController < ApplicationController
2
2
  layout 'sessions'
3
- before_filter :login_required, :only => [:destroy, :show]
3
+ skip_before_filter :login_required, :only => [:new, :create]
4
4
 
5
5
  def new
6
6
  end
@@ -19,6 +19,13 @@ class SessionsController < ApplicationController
19
19
  end
20
20
  end
21
21
 
22
+ def auth
23
+
24
+ respond_to do |format|
25
+ format.json { render :json => true.to_json }
26
+ end
27
+ end
28
+
22
29
  def show
23
30
  @user = User.find(session[:dn])
24
31
  respond_to do |format|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puavo_authentication
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jouni Korhonen