aadhar 0.0.7 → 0.0.8
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWI1YjRlZjZmNDk2OTA4YjI1N2I4NmQ0YzBmMmMwODQzM2NhYjYzNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTU5Nzg5MjY0YmViYzEwOTVkMDBjODE1MDI3MGE4MTc2YzhlOTg4OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODllNTliZjA5ZjE2NDYxMTA5MzZhMmQzZmE2YzJjNWFkNGY3Mzg4NTc3ZjVl
|
10
|
+
NGE0MjE0Y2RlN2Q3ZTNjYmI5YzRhM2JiYzk2NjE4NzhlZTQ5ODk1YWQwY2M0
|
11
|
+
NGE5Yzc1MWMxNGI1MjViNzZhNjY4MDM2ODhkMGYxMzg0YjBhNTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWE5ZjNmZjczMDYwNmFlOWUwYzEwYzMyYzBiZTY3OGVlM2EzNTUxMDM4ZDE2
|
14
|
+
MDEzMzc1ZWY3N2YzM2Q1OWY3MjM4MTE3Mjk4OTRjYzhkMWYyOWM2NWQzNjZm
|
15
|
+
MmVhYzFlNTQ3ODcxODI3NWE4YTMxZTM3YWQyNjhiOTMzMGY0ODE=
|
@@ -1,7 +1,4 @@
|
|
1
|
-
class Aadhar::ApplicationController < ActionController::
|
2
|
-
# Prevent CSRF attacks by raising an exception.
|
3
|
-
# For APIs, you may want to use :null_session instead.
|
4
|
-
protect_from_forgery with: :exception
|
1
|
+
class Aadhar::ApplicationController < ActionController::API
|
5
2
|
|
6
3
|
def authenticate
|
7
4
|
render :status => 401, :json => { :success => false, :info => "Unauthorized"} if !current_user.present?
|
@@ -1,5 +1,4 @@
|
|
1
|
-
class Aadhar::PasswordsController < ApplicationController
|
2
|
-
protect_from_forgery with: :null_session, :if => Proc.new { |c| c.request.format == 'application/json' }
|
1
|
+
class Aadhar::PasswordsController < Aadhar::ApplicationController
|
3
2
|
before_filter :authenticate, only: [:update]
|
4
3
|
|
5
4
|
def update
|
@@ -1,6 +1,4 @@
|
|
1
1
|
class Aadhar::SessionsController < ApplicationController
|
2
|
-
protect_from_forgery with: :null_session, :if => Proc.new { |c| c.request.format == 'application/json' }
|
3
|
-
#skip_before_filter :authenticate
|
4
2
|
|
5
3
|
def create
|
6
4
|
user = User.authenticate(params[:email], params[:password])
|
data/lib/aadhar/version.rb
CHANGED