decidim-friendly_signup 0.4.1 → 0.4.2

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: 4759703c0e6890c53f828d2db7be0ab349ca526cbe6d064d9d5b809e9429aea7
4
- data.tar.gz: 6854425281b3d148d6cba8e8ed8d3b91ba3ae462a32b08d4b51540ac995c676f
3
+ metadata.gz: 156a94366f47dc7f364338feca03ba824d6e9d38a16b9c8f8a6fbac4774ccbd1
4
+ data.tar.gz: 131f4becfb5b981f0f026a970b0b38cf98fdb2d5970bc43873ad942d360df76d
5
5
  SHA512:
6
- metadata.gz: aca757d63345ea7c3e0207809ccbe744dc976d056ff8f2c860b49af82842f7610ec5f4e5b381d1fd3e8355b0c461995c3f4dc054d5adb1f9fae987fd994fb409
7
- data.tar.gz: 975dae306e8db7c651e597c7c83aa2bc59c5ae7b16109cc2e0969a307aa9bc575e01a17fe35249cfe772b97e01115871539688e6e9059db5bfdbdc5e1bf89c98
6
+ metadata.gz: 0a384da56675c80fc63b1d3c8f1a197e5ac46658395caa5926dbedc6d3a20a37648dc7f50183ebe69d601940fa50b87f8ee124109a4dd44e12fdf137f79d2ec1
7
+ data.tar.gz: a5622ee4f5bbc17f42abbb24922007332df97361a7f00ca39702b4965e3117483170aafd15da5c68e38053606e9736bfae20b0f1414377eb1c522060a7f1e9da
@@ -14,7 +14,7 @@ module Decidim
14
14
  @expires_at = @user.confirmation_sent_at + @user.class.confirm_within if @user.class.confirm_within
15
15
 
16
16
  with_user(user) do
17
- mail(to: "#{user.name} <#{@email}>", subject: I18n.t("decidim.friendly_signup.confirmation_codes.mailer.subject", organization: @organization.name))
17
+ mail(to: "#{user.name} <#{@email}>", subject: I18n.t("decidim.friendly_signup.confirmation_codes.mailer.subject", organization: @organization.name, code: @code))
18
18
  end
19
19
  end
20
20
  end
@@ -33,10 +33,10 @@
33
33
  <%= decidim_form_for(resource, namespace: "session", as: resource_name, url: session_path(resource_name), html: { class: "register-form new_user" }) do |f| %>
34
34
  <div>
35
35
  <div class="field">
36
- <%= f.email_field :email %>
36
+ <%= f.email_field :email, required: true, pattern: "email" %>
37
37
  </div>
38
38
  <div class="field">
39
- <%= render("decidim/friendly_signup/shared/password_fields", form: f, options: { autocomplete: "off" }) %>
39
+ <%= render("decidim/friendly_signup/shared/password_fields", form: f, options: { autocomplete: "off" }, skip_confirmation: true) %>
40
40
  </div>
41
41
  </div>
42
42
  <% if devise_mapping.rememberable? %>
@@ -9,17 +9,23 @@
9
9
  </div>
10
10
  </div>
11
11
 
12
- <div class="user-password-confirmation">
13
- <div class="field">
14
- <%= form.password_field :password_confirmation %>
12
+ <% unless defined?(skip_confirmation) && skip_confirmation %>
13
+ <div class="user-password-confirmation">
14
+ <div class="field">
15
+ <%= form.password_field :password_confirmation %>
16
+ </div>
15
17
  </div>
16
- </div>
18
+ <% end %>
19
+
17
20
  <% else %>
18
21
  <div class="field">
19
22
  <%= form.password_field :password, options %>
20
23
  </div>
21
24
 
22
- <div class="field">
23
- <%= form.password_field :password_confirmation %>
24
- </div>
25
+ <% unless defined?(skip_confirmation) && skip_confirmation %>
26
+ <div class="field">
27
+ <%= form.password_field :password_confirmation %>
28
+ </div>
29
+ <% end %>
30
+
25
31
  <% end %>
@@ -5,6 +5,10 @@ en:
5
5
  confirmation_code:
6
6
  code: Confirmation code
7
7
  decidim:
8
+ forms:
9
+ errors:
10
+ decidim/user:
11
+ email: Please enter a valid email address
8
12
  friendly_signup:
9
13
  confirmation_code_form:
10
14
  expired: Sorry, this code has expired, please generate a new one.
@@ -25,7 +29,7 @@ en:
25
29
  title: One last step...
26
30
  verify: Verify
27
31
  mailer:
28
- subject: Confirm your account at %{organization}
32
+ subject: "%{code} is your confirmation code for %{organization}"
29
33
  resend_code:
30
34
  sent: The confirmation code has been sent to %{email}.
31
35
  confirmation_codes_mailer:
@@ -5,6 +5,6 @@ module Decidim
5
5
  module FriendlySignup
6
6
  DECIDIM_VERSION = "0.26.2"
7
7
  COMPAT_DECIDIM_VERSION = "~> 0.26.0"
8
- VERSION = "0.4.1"
8
+ VERSION = "0.4.2"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-friendly_signup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Vergés
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-27 00:00:00.000000000 Z
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core