Sha256: 003ffd428fb308d168adc3e5963147e682b54010ee69ad089bf99d94b7938acf

Contents?: true

Size: 512 Bytes

Versions: 8

Compression:

Stored size: 512 Bytes

Contents

class PasswordController < ApplicationController
  skip_ensure_email_is_verified

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

    return render partial: 'profile/partials/update_password_form', status: :unprocessable_entity if @update_password_form.invalid?

    Current.auth.user.update(password: @update_password_form.password)

    redirect_back_or_to profile_edit_path, flash: { status: 'password-updated' }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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