tramway-auth 1.0.1.1 → 1.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/forms/tramway/auth/session_form.rb +2 -5
- data/lib/tramway/auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9cb818ce07d19cb80e70af368c72e828d708b3eac0c27199554e625d5c90ca7
|
4
|
+
data.tar.gz: d51885d2c35e87e7bb3bf269bab39650a3a7abb122db4320ab29cc9c6e98753c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52709d6f09386aa602578acb9f7acb33ab901bb3adb0dff8230d263bc4d6fcbc7afb29d29d43f1d225a51917b30eb1048aa4956b9c5737098fbce2ebf666b5b1
|
7
|
+
data.tar.gz: 0f22967a693601ec55e5ae3210067be069e4205e43df9f99c5770ce618cd2b3f973f19559a1edbb76540f253a7b64bb66e7d42c645bf550890878d14ec27de59
|
@@ -8,11 +8,8 @@ module Tramway::Auth
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def validate(params)
|
11
|
-
|
12
|
-
add_wrong_email_or_password_error unless
|
13
|
-
rescue
|
14
|
-
add_wrong_email_or_password_error
|
15
|
-
false
|
11
|
+
(!model.new_record? && model.authenticate(params[:password])).tap do |result|
|
12
|
+
add_wrong_email_or_password_error unless result
|
16
13
|
end
|
17
14
|
end
|
18
15
|
|
data/lib/tramway/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.1.
|
4
|
+
version: 1.0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for auth
|
14
14
|
email:
|