rails_cerberus 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cerberus/sessions_controller.rb +1 -1
- data/lib/cerberus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5653c6e47c9306b5e19591351c5b0937366ba9
|
4
|
+
data.tar.gz: a596e72507cbd2d9ce671f05a52af69bcb3a3710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d0c1489afb0e700b74baf30f21bdddbc6a9767f66f1428378c884ed789a6c4fdde4695b993f01bce9b0bb9e528195fa5173709d92a4a0ccae324e2c52f3a7c
|
7
|
+
data.tar.gz: d81b801e16ca79eaf34cc30c9200a248908a1c66a3d3a88774dfbb91f3803031a39bccdfa7de8df7273de7093a76baf98a15525b59e72e41d2a0a850363ab4de
|
@@ -3,7 +3,7 @@ require 'cerberus/identity'
|
|
3
3
|
class Cerberus::SessionsController < ActionController::Base
|
4
4
|
def create
|
5
5
|
identity = Cerberus::Identity.find_or_create_by! auth.slice(:provider, :uid)
|
6
|
-
identity.user ||= Cerberus.config.
|
6
|
+
identity.user ||= Cerberus.config[:identities][:user_class_name].constantize.find_or_create_by! auth.slice(:email)
|
7
7
|
identity.save
|
8
8
|
|
9
9
|
session[:user_id] = identity.user.id
|
data/lib/cerberus/version.rb
CHANGED