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