egov_utils 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d348bf4a95152401f8f4dd63902d7554a3b7dcff277709ecea617f8308ed346
|
4
|
+
data.tar.gz: 05c443eab6eeb9ffdef710579ac6c52e158e93ea86f738001d7e97090a280448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ecddd413f9a261b1f1139b38d32ea022508d1fd7685bd72f77accf72f24564234d22489371636a2dacaa9d174de471c9ead7606808c1e7896fdb761bc9db573
|
7
|
+
data.tar.gz: 46fc87b2aa6dc2558613495cc2287c2aefdb7bc49c4440ccf4eedb2edbc0c7a31a2d09fc47f1875e581de0554809f1fd39e966cd711e1bd0a01de2a191454ea2
|
@@ -26,7 +26,10 @@ module EgovUtils
|
|
26
26
|
|
27
27
|
# Make sure no one can sign in with an empty login or password
|
28
28
|
return nil if login.empty? || password.empty?
|
29
|
-
|
29
|
+
|
30
|
+
# Fail over to case-insensitive if none was found
|
31
|
+
user = find_by(login: login) || where( arel_table[:login].lower.eq(login.downcase) ).first
|
32
|
+
|
30
33
|
if user
|
31
34
|
# user is already in local database
|
32
35
|
return nil unless user.password_check?(password)
|
@@ -91,7 +91,7 @@ module EgovUtils
|
|
91
91
|
if request.get?
|
92
92
|
url = request.original_url
|
93
93
|
else
|
94
|
-
url = url_for(:controller => params[:controller], :action => params[:action], :id => params[:id], :
|
94
|
+
url = url_for(:controller => params[:controller], :action => params[:action], :id => params[:id], only_path: true)
|
95
95
|
end
|
96
96
|
respond_to do |format|
|
97
97
|
format.html {
|
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|