Method: ActiveAuthentication::UnlocksController#create

Defined in:
app/controllers/active_authentication/unlocks_controller.rb

#createObject



8
9
10
11
12
13
# File 'app/controllers/active_authentication/unlocks_controller.rb', line 8

def create
  @user = User.find_by email: params[:email]
  @user&.send_unlock_instructions if @user&.locked?

  redirect_to root_path, notice: t(".success")
end