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

Version Path
authentication-zero-2.16.28 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.27 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.26 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.25 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.24 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.23 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.22 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.21 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.20 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.19 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.18 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.17 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.16 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.15 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.14 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.13 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.12 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.5 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.4 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt
authentication-zero-2.16.3 lib/generators/authentication/templates/controllers/html/sessions/sudos_controller.rb.tt