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