Sha256: b4aa5b1fd078eecc105a7c414e4b85d0217186f9fd30837bf09ccf82f2733943

Contents?: true

Size: 501 Bytes

Versions: 15

Compression:

Stored size: 501 Bytes

Contents

# frozen-string-literal: true

module Rodauth
  Feature.define(:verify_change_login, :VerifyChangeLogin) do
    depends :change_login, :verify_account_grace_period

    def change_login_notice_flash
      "#{super}. #{verify_account_email_sent_notice_flash}"
    end

    private

    def after_change_login
      super
      update_account(account_status_column=>account_unverified_status_value)
      setup_account_verification
      session[unverified_account_session_key] = true
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rodauth-1.23.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.22.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.21.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.20.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.19.1 lib/rodauth/features/verify_change_login.rb
rodauth-1.19.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.18.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.17.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.16.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.15.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.14.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.13.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.12.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.11.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.10.0 lib/rodauth/features/verify_change_login.rb