Sha256: 48df8c3ba54a5bc3823cef9037dccd227553e62701bc90192ed2a2f1b7cefacf

Contents?: true

Size: 501 Bytes

Versions: 10

Compression:

Stored size: 501 Bytes

Contents

# frozen-string-literal: true

module Rodauth
  VerifyChangeLogin = Feature.define(:verify_change_login) 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

10 entries across 10 versions & 1 rubygems

Version Path
rodauth-1.9.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.8.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.7.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.6.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.5.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.4.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.3.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.2.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.1.0 lib/rodauth/features/verify_change_login.rb
rodauth-1.0.0 lib/rodauth/features/verify_change_login.rb