Class: LunarShell::Satellites::PasswdController

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

Constant Summary

Constants inherited from LunarShell::SatellitesController

LunarShell::SatellitesController::PUBLIC

Instance Method Summary collapse

Instance Method Details

#confirm_passwordObject



11
12
# File 'app/controllers/lunar_shell/satellites/passwd_controller.rb', line 11

def confirm_password
end

#createObject



14
15
16
17
18
19
20
# File 'app/controllers/lunar_shell/satellites/passwd_controller.rb', line 14

def create
  @message = if user_auth && update_password!
    'Password updated.'
  else
    'try again'
  end
end

#new_passwordObject



8
9
# File 'app/controllers/lunar_shell/satellites/passwd_controller.rb', line 8

def new_password
end

#runObject



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

def run
  render 'no_user_error' unless current_user
end