Class: ApiBackend::TokensController

Inherits:
ApiController
  • Object
show all
Defined in:
app/controllers/api_backend/tokens_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



5
6
7
8
# File 'app/controllers/api_backend/tokens_controller.rb', line 5

def create
  @user = find_user_by_email(params[:email])
  authenticate_user ? render : render_unauthorized
end