kaui 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 805463d351eaabf12476b05446e7f3b8eb056b97e37e6de25c436afa0fca134b
4
- data.tar.gz: 0ae2b9aeaa2dfb7c0ba5ad8f0a4d884da25bdbeab8295a9790a3bb1fa8efa3df
3
+ metadata.gz: 7f596d33c9101a5c1f95ea8be507f07056b62dda7ed5c37b1a58579bd90cdab4
4
+ data.tar.gz: '0826f3da7e895c972c87c415512e185780930625e07fedfd06319d52f560838a'
5
5
  SHA512:
6
- metadata.gz: c69a457e3c988c05dc27a6cb36ddb8d91fdfc6cd89b3021a98feb3399368e709a07a8802a092569a45b7a7b4e6d617e3060b598575ebd738f9c704171f4a148b
7
- data.tar.gz: c7e2527b2bea8ba42730a18644d1add4afc61d96e0a8955190de6708f4c2675756e2834ea7b83ca7055b913964b3ad879a1319af632f6cd2537a892cca19daf8
6
+ metadata.gz: cbaceb6310f761f868dc51ea0580eb1c30ba33076c9effc3ec15b59f8fe4e5e64c686920e8befe95d9d89bdc2288b51d1affbc86f67c203ec124f79b3fd525dd
7
+ data.tar.gz: 38416e084810d239bf4295d0b6289e07747687b33ef0902d44b506fe23eab758a8a47c5b13bdd1e28b5ad3b3f897fe99a1b1038735bf250a73a0511acd5aaf82
@@ -11,6 +11,11 @@ module Kaui
11
11
 
12
12
  # The sign-in flow eventually calls authenticate! from config/initializers/killbill_authenticatable.rb
13
13
 
14
+ def new
15
+ flash.delete(:alert) if flash[:alert] == I18n.t('devise.failure.unauthenticated') && (stored_location_for(:user).nil? || flash[:notice].present?)
16
+ super
17
+ end
18
+
14
19
  rescue_from(StandardError) do |exception|
15
20
  Rails.logger.error(exception.message)
16
21
  Rails.logger.error(exception.backtrace.join("\n")) if exception.backtrace
@@ -29,7 +34,7 @@ module Kaui
29
34
 
30
35
  def after_sign_out_path_for(_resource)
31
36
  cookies.delete(:jwt_token)
32
- kaui_path
37
+ new_user_session_path
33
38
  end
34
39
 
35
40
  def require_no_authentication
@@ -4,6 +4,6 @@
4
4
  <%= render "kaui/components/form_password/form_password", f: f, field: :password, label: t("devise.sessions.new.password"), placeholder: "*****" %>
5
5
 
6
6
  <div class="d-grid mt-4">
7
- <%= render "kaui/components/button/button", label: t("devise.sessions.new.log_in"), variant: "btn-primary custom-hover", type: "submit", html_class: "w-100" %>
7
+ <%= render "kaui/components/button/button", label: t("devise.sessions.new.sign_in"), variant: "btn-primary custom-hover", type: "submit", html_class: "w-100" %>
8
8
  </div>
9
- <% end %>
9
+ <% end %>
@@ -3,19 +3,19 @@
3
3
  en:
4
4
  devise:
5
5
  confirmations:
6
- confirmed: "Your account was successfully confirmed. You are now logged in."
6
+ confirmed: "Your account was successfully confirmed. You are now signed in."
7
7
  send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
8
8
  send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
9
9
  failure:
10
- already_authenticated: "You are already logged in."
10
+ already_authenticated: "You are already signed in."
11
11
  inactive: "Your account was not activated yet."
12
12
  invalid: "Invalid username or password."
13
13
  invalid_token: "Invalid authentication token."
14
14
  locked: "Your account is locked."
15
15
  not_found_in_database: "Invalid username or password."
16
16
  killbill_not_available: "Kill Bill is unavailable"
17
- timeout: "Your session expired, please log in again to continue."
18
- unauthenticated: "You need to log in before continuing."
17
+ timeout: "Your session expired, please sign in again to continue."
18
+ unauthenticated: "You need to sign in before continuing."
19
19
  unconfirmed: "You have to confirm your account before continuing."
20
20
  mailer:
21
21
  confirmation_instructions:
@@ -31,31 +31,31 @@ en:
31
31
  no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
32
32
  send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
33
33
  send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
34
- updated: "Your password was changed successfully. You are now logged in."
34
+ updated: "Your password was changed successfully. You are now signed in."
35
35
  updated_not_active: "Your password was changed successfully."
36
36
  registrations:
37
37
  destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
38
38
  signed_up: "Welcome! You have signed up successfully."
39
- signed_up_but_inactive: "You have signed up successfully. However, we could not log you in because your account is not yet activated."
40
- signed_up_but_locked: "You have signed up successfully. However, we could not log you in because your account is locked."
39
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
40
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
41
41
  signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
42
42
  update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
43
43
  updated: "You updated your account successfully."
44
44
  sessions:
45
- signed_in: "Logged in successfully."
46
- signed_out: "Logged out successfully."
45
+ signed_in: "Signed in successfully."
46
+ signed_out: "Signed out successfully."
47
47
  new:
48
48
  username: "Username"
49
49
  password: "Password"
50
50
  enter_username: "Enter your username"
51
- log_in: "Log in"
51
+ sign_in: "Sign in"
52
52
  unlocks:
53
53
  send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
54
54
  send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
55
- unlocked: "Your account has been unlocked successfully. Please log in to continue."
55
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
56
56
  errors:
57
57
  messages:
58
- already_confirmed: "was already confirmed, please try logging in"
58
+ already_confirmed: "was already confirmed, please try signing in"
59
59
  confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
60
60
  expired: "has expired, please request a new one"
61
61
  not_found: "not found"
data/lib/kaui/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kaui
4
- VERSION = '4.0.1'
4
+ VERSION = '4.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaui
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team