File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
app/controllers/jwt_authentication Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- jwt_authentication (0.0.2 )
4+ jwt_authentication (0.0.4 )
55 actionmailer (>= 3.2.6 , < 5 )
66 actionpack (>= 3.2.6 , < 5 )
77 devise (~> 3.2 )
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ def create
1010 def show
1111 self . resource = resource_class . confirm_by_token ( params [ :confirmation_token ] )
1212 yield resource if block_given?
13- render json : { status : json_status ( resource . errors . empty? ) }
13+ if resource . errors . empty?
14+ render json : { auth_token : resource . jwt_token }
15+ else
16+ render json : { errors : resource . errors }
17+ end
1418 end
1519end
Original file line number Diff line number Diff line change 11module JwtAuthentication
2- VERSION = '0.0.3 '
2+ VERSION = '0.0.4 '
33end
You can’t perform that action at this time.
0 commit comments