Sha256: af2e9d3a52b670f25b0618e8fbbe1b6726fc3c616dd8689393e7a64692c1ef9e
Contents?: true
Size: 432 Bytes
Versions: 8
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true class EmailVerificationsController < ApplicationController def show current_user.verify_email(params[:token]) end def new # verify email for current_user end def create current_user.regenerate_verification_token MinimalistAuthenticationMailer.verify_email(current_user).deliver_now redirect_to dashboard_path, notice: t(".notice", email: current_user.email) end end
Version data entries
8 entries across 8 versions & 1 rubygems