Skip to content

Commit

Permalink
[CP] Fixes before launch (aptos-labs#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
CapCap authored May 13, 2022
1 parent 61b7665 commit 1ccab47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def admin_access_denied(_exception)
end

def ensure_confirmed!
redirect_to onboarding_email_path unless current_user.confirmed?
redirect_to onboarding_email_path unless current_user&.confirmed?
end

def append_info_to_payload(payload)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<%= f.text_field :account_key, required: true, pattern: '0x[a-f0-9]{64}' %>
</p>
<p class="mb-4">
<%= f.label :network_key, class: "font-mono uppercase block mb-2 text-lg" %>
<%= f.label :network_key, "Validator Network Key", class: "font-mono uppercase block mb-2 text-lg" %>
<%= f.text_field :network_key, required: true, pattern: '0x[a-f0-9]{64}' %>
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# This crashes if there is no DB present, for @Christian
# Only if this is running as a rails server
unless ENV.fetch('SKIP_DB_CHECK', nil)
if !ENV.fetch('SKIP_DB_CHECK', nil) && (ActiveRecord::Base.connection.data_source_exists? :users)
Rails.application.config.after_initialize do
User.where(id: 1).exists?
end
Expand Down

0 comments on commit 1ccab47

Please sign in to comment.