puavo_authentication 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/sessions_controller.rb +8 -1
- metadata +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
class SessionsController < ApplicationController
|
2
2
|
layout 'sessions'
|
3
|
-
|
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:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 19
|
10
|
+
version: 0.0.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jouni Korhonen
|