Class: LunarShell::Satellites::SuController
Constant Summary
LunarShell::SatellitesController::PUBLIC
Instance Method Summary
collapse
Instance Method Details
#create ⇒ Object
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
|
#run ⇒ Object
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
|