Sha256: 171823e9d64034888c0994a629b970b1fd5b4a45e977bd8da11c99fee25e6d52
Contents?: true
Size: 527 Bytes
Versions: 21
Compression:
Stored size: 527 Bytes
Contents
class Sessions::SudosController < ApplicationController def new end def create session = Current.session <%- if omniauthable? -%> if session.user.authenticate(params[:password]) || session.user.provider <%- else -%> if session.user.authenticate(params[:password]) <%- end -%> 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