Sha256: 076478aa6cb509c91785966078602b56633dcfb51be0335e9ebf0d32334167a4

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

class PasswordController < ApplicationController
  skip_ensure_email_is_verified

  def update
    form = UpdatePasswordForm.new(params.permit(:current_password, :password, :password_confirmation))

    return redirect_to profile_edit_path, inertia: { errors: form.error_messages } if form.invalid?

    Current.auth.user.update(password: form.password)

    redirect_back_or_to profile_edit_path
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kaze-0.17.0 stubs/inertia-common/app/controllers/password_controller.rb
kaze-0.16.0 stubs/inertia-common/app/controllers/password_controller.rb
kaze-0.15.0 stubs/inertia-common/app/controllers/password_controller.rb
kaze-0.14.0 stubs/inertia-common/app/controllers/password_controller.rb
kaze-0.13.0 stubs/inertia-common/app/controllers/password_controller.rb
kaze-0.12.0 stubs/inertia-common/app/controllers/password_controller.rb
kaze-0.11.0 stubs/inertia-common/app/controllers/password_controller.rb
kaze-0.10.0 stubs/inertia-common/app/controllers/password_controller.rb