authentication-zero 2.12.2 → 2.12.3
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: 7fb2db79d9ec8af38e73e00fd45298471a60166395b9cc28be6483f3ce2b5c19
|
4
|
+
data.tar.gz: 2c9e5f9286e11bcc1a60871c2a22e46f0e82d16269142b587d109b8d3462bb7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ffd4716ca5ae698dd51ab43a3721c33a425c27318f517f6fe8d0f4a6799313af37618cdce3fdb03ee7d1065898fb1ae9fde4652bf7f2fab482c4e81699a0317
|
7
|
+
data.tar.gz: 53fb29f4bad9fb1f59c32b5b6bcbff68427297685635c5d09217b1a3a5fe6a1fff91f392104579a3e596d6fcfb055c5c950da56eca0fd0ddedc9a8f13955e58d
|
data/Gemfile.lock
CHANGED
@@ -5,9 +5,6 @@ class RegistrationsController < ApplicationController
|
|
5
5
|
@user = User.new(user_params)
|
6
6
|
|
7
7
|
if @user.save
|
8
|
-
session = @user.sessions.create!
|
9
|
-
response.set_header "X-Session-Token", session.signed_id
|
10
|
-
|
11
8
|
render json: @user, status: :created
|
12
9
|
else
|
13
10
|
render json: @user.errors, status: :unprocessable_entity
|