Sha256: a6af1b2758a0e2b31d50674369217d47585c58cdef381f653b901d651c00651b
Contents?: true
Size: 409 Bytes
Versions: 14
Compression:
Stored size: 409 Bytes
Contents
class Sessions::SudosController < ApplicationController def new end def create session_record = Current.session if session_record.user.authenticate(params[:password]) session_record.sudo.mark; redirect_to(params[:proceed_to_url]) else redirect_to new_sessions_sudo_path(proceed_to_url: params[:proceed_to_url]), alert: "The password you entered is incorrect" end end end
Version data entries
14 entries across 14 versions & 1 rubygems