Sha256: 77acd55b3bb63aeddb36c6c23a21e2d98abed96ede9c4f147ce53c8aaac57839
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
class Sessions::SudosController < ApplicationController def create session = Current.session if session.<%= singular_table_name %>.authenticate(params[:password]) session.sudo.mark else render json: { error: "The password you entered is incorrect" }, status: :bad_request end end end
Version data entries
2 entries across 2 versions & 1 rubygems