Class: LunarShell::Satellites::SuController

Inherits:
LunarShell::SatellitesController show all
Defined in:
app/controllers/lunar_shell/satellites/su_controller.rb

Constant Summary

Constants inherited from LunarShell::SatellitesController

LunarShell::SatellitesController::PUBLIC

Instance Method Summary collapse

Instance Method Details

#createObject



8
9
10
11
12
13
14
15
# File 'app/controllers/lunar_shell/satellites/su_controller.rb', line 8

def create

  if !log_in!(su_params[:username]).
      try(:authenticate, su_params[:password])
    log_out!
    @error_message = 'Sorry'
  end
end

#runObject



4
5
6
# File 'app/controllers/lunar_shell/satellites/su_controller.rb', line 4

def run
  render 'no_username' and return unless provided_username
end