Skip to content

Commit a5ab2cb

Browse files
committed
Fix invokation of OnOmniauthRegistrationListener.on_omniauth_registration after login/registration. (#20)
1 parent 599bb6a commit a5ab2cb

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Following Semantic Versioning 2.
33

44
## next version:
55

6+
## Version 0.7.1 (PATCH)
7+
- Fix invokation of `OnOmniauthRegistrationListener.on_omniauth_registration` after login/registration.
68

79
## Version 0.7.0 (MINOR)
810
- Refactor to use Decidim::Valid namespace.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
decidim-idcat_mobil (0.7.0)
4+
decidim-idcat_mobil (0.7.1)
55
decidim (>= 0.29.0)
66
decidim-core (>= 0.29.0)
77
omniauth-idcat_mobil (~> 0.6.0)

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ Remember to set `IDCAT_MOBIL_CLIENT_ID`, `IDCAT_MOBIL_CLIENT_SECRET` and `IDCAT_
4646

4747
Refer to `omniauth-idcat_mobil` gem for further documentation.
4848

49-
## TODO
50-
51-
- User Verification development has to be finished.
52-
5349
## Contributing
5450

5551
See [Decidim](https://github.com/decidim/decidim).

lib/decidim/idcat_mobil/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Decidim
44
module IdcatMobil
55
def self.version
66
# See CHANGELOG.md to see what changed
7-
"0.7.0"
7+
"0.7.1"
88
end
99

1010
def self.decidim_version

lib/decidim/valid/on_omniauth_registration_listener.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Valid
66
# Simply delegates the management of verifying IdCat mòbil to the VerificationJob.
77
#
88
class OnOmniauthRegistrationListener
9-
def on_omniauth_registration(oauth_data)
9+
def self.on_omniauth_registration(oauth_data)
1010
VerificationJob.perform_later(oauth_data)
1111
end
1212
end

spec/lib/decidim/valid/omniauth_registration_listener_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
module Decidim::Valid
66
describe OnOmniauthRegistrationListener do
7+
subject { OnOmniauthRegistrationListener }
78
describe "when omniauth_registration event is notified" do
89
let(:raw_data) { { email: "some@example.org" } }
910
let(:data) do

0 commit comments

Comments
 (0)