action_auth 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66dba288eaf6e2910d810a8109c454756234feadc58f817347e61112383c5bd8
4
- data.tar.gz: c90e89c2ea39cac613776d91a3d0b827b393e7e7632c71d2380705949b591606
3
+ metadata.gz: 8c07ad9154a460104b707e5de606ed075d7598d46ec23aea95886cf38adde58b
4
+ data.tar.gz: be73fc563f21b20d7011beb5d8f254da78dd19cec32e17d5544dfbead62021ea
5
5
  SHA512:
6
- metadata.gz: ea654d512bb836d4a4f148fc8a4ac21770b9654bd4f465fde624d654d1fe53e6c776f0046b0a24f5e407a849b1ed07adadd3be6a4d94a3f95092067a1b63dd66
7
- data.tar.gz: 4f56bf4c79c9adc8229d474c2b55ad3848e72f68c765ce0806e441415d0961838101a96b5732dc55f7d0fdd5b921e62e64813ded0b58990cb8c81e8e3cb6d5b5
6
+ metadata.gz: dd5c45af824e82690d667dca90b29e3741da5a607f5d66e9acb8b3b3cf7ab1cfdd6fdff6c5b7501e39df358e474cdc4093166a54a1f7244858df16c0b1d012c1
7
+ data.tar.gz: 7fc79d6d508ed1e5293bd1153b29f545ab01ba80b6ee4a5692abd1f7fac6bb5640ec284811e7bf7047aebcfe0b423f69215348c4ec105f84c25fac6c2915ff08
data/README.md CHANGED
@@ -65,6 +65,7 @@ ActionAuth.configure do |config|
65
65
  config.webauthn_origin = "http://localhost:3000" # or "https://example.com"
66
66
  config.webauthn_rp_name = Rails.application.class.to_s.deconstantize
67
67
  config.verify_email_on_sign_in = true
68
+ config.default_from_email = "from@example.com"
68
69
  end
69
70
  ```
70
71
 
@@ -200,6 +201,7 @@ ActionAuth.configure do |config|
200
201
  config.webauthn_origin = "http://localhost:3000" # or "https://example.com"
201
202
  config.webauthn_rp_name = Rails.application.class.to_s.deconstantize
202
203
  config.verify_email_on_sign_in = true
204
+ config.default_from_email = "from@example.com"
203
205
  end
204
206
  ```
205
207
 
@@ -1,6 +1,6 @@
1
1
  module ActionAuth
2
2
  class ApplicationMailer < ActionMailer::Base
3
- default from: "from@example.com"
3
+ default from: ActionAuth.configuration.default_from_email
4
4
  layout "mailer"
5
5
  end
6
6
  end
@@ -5,12 +5,14 @@ module ActionAuth
5
5
  attr_accessor :webauthn_origin
6
6
  attr_accessor :webauthn_rp_name
7
7
  attr_accessor :verify_email_on_sign_in
8
+ attr_accessor :default_from_email
8
9
 
9
10
  def initialize
10
11
  @webauthn_enabled = defined?(WebAuthn)
11
12
  @webauthn_origin = "http://localhost:3000"
12
13
  @webauthn_rp_name = Rails.application.class.to_s.deconstantize
13
14
  @verify_email_on_sign_in = true
15
+ @default_from_email = "from@example.com"
14
16
  end
15
17
 
16
18
  def webauthn_enabled?
@@ -1,3 +1,3 @@
1
1
  module ActionAuth
2
- VERSION = "0.2.10"
2
+ VERSION = "0.2.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Kimura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.5.4
123
+ rubygems_version: 3.5.5
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: A simple Rails engine for authorization.