Sha256: 4e4f9c1b7f918b9d70b1b3f8752c3b7f179c1b76caf47bad7bf5156619c560b9
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
class PasswordController < ApplicationController 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
3 entries across 3 versions & 1 rubygems