Sha256: e6f63acbcbad904d7a680c749e8ca5005b357d929599cf0e79d2b3dc8abb62a8

Contents?: true

Size: 507 Bytes

Versions: 19

Compression:

Stored size: 507 Bytes

Contents

module RailsBase::UserSettingsHelper
  CONFIRM_PASSWORD_FLOW = {
    password_flow: 'rails_base/user_settings/modify_password_update_password',
    destroy_user: 'rails_base/user_settings/confirm_destroy_user'
  }

  DATUM_LENGTH = 36
  DATUM_TTL = 30.seconds
  DATUM_REASON = :confirm_password


  def datum
    params = {
      user: current_user,
      max_use: 1,
      reason: DATUM_REASON,
      ttl: DATUM_TTL,
      length: DATUM_LENGTH,
    }
    ShortLivedData.create_data_key(**params)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rails_base-0.82.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.81.1 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.81.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.80.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.75.6 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.75.5 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.75.4 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.75.3 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.75.2 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.75.1 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.75.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.74.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.73.1 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.73.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.72.1 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.72.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.71.0 app/helpers/rails_base/user_settings_helper.rb
rails_base-0.70.1.pre app/helpers/rails_base/user_settings_helper.rb
rails_base-0.70.0 app/helpers/rails_base/user_settings_helper.rb