Sha256: 8b0868d59aec3dff93ee923e15801bc94683d0b92c7a0bc754351bc1a9d91346
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
require_dependency "cadenero/application_controller" module Cadenero::V1 class Account::SessionsController < Cadenero::ApplicationController def create if env['warden'].authenticate(:scope => :user) render json: current_user, status: 201 else render json: {errors: {user:["Invalid email or password"]}}, status: 422 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cadenero-0.0.2.a | app/controllers/cadenero/v1/sessions_controller.rb |
cadenero-0.0.1 | app/controllers/cadenero/v1/sessions_controller.rb |