~cytrogen/masto-fe

ref: 33c8708a1ac7df363bf2bd74ab8fa2ed7168379c masto-fe/app/controllers/admin/resets_controller.rb -rw-r--r-- 311 bytes
33c8708a — Claire Change `GET /api/v1/directory` to use database replica rather than primary (#26856) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Admin
  class ResetsController < BaseController
    before_action :set_user

    def create
      authorize @user, :reset_password?
      @user.reset_password!
      log_action :reset_password, @user
      redirect_to admin_account_path(@user.account_id)
    end
  end
end