Sha256: 5bf7855053077f81a36eb0d8a46e766b623c27e18d6810e5cab5e45d53f02b15
Contents?: true
Size: 388 Bytes
Versions: 21
Compression:
Stored size: 388 Bytes
Contents
class Sessions::SudosController < ApplicationController def new end def create session = Current.session if session.user.authenticate(params[:password]) session.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
21 entries across 21 versions & 1 rubygems