Correção Segurança entrada PIN motorista QRcode

This commit is contained in:
2026-06-22 19:44:50 -03:00
parent 5d5531b695
commit 21c84bf4f4
4 changed files with 41 additions and 19 deletions

View File

@@ -8,7 +8,12 @@
<div class="text-center mb-8">
<div class="w-16 h-16 bg-orange-500 rounded-2xl flex items-center justify-center font-black text-black text-3xl mx-auto mb-3">G</div>
<h1 class="text-white font-bold text-2xl">Reem Logística</h1>
<p class="text-gray-400 text-base mt-1">Digite seu PIN de 4 números</p>
<% if @motorista_pre %>
<p class="text-white text-lg mt-1">Olá, <span class="font-bold text-orange-400"><%= @motorista_pre.nome.split.first %></span>!</p>
<p class="text-gray-400 text-base">Confirme com seu PIN de 4 números</p>
<% else %>
<p class="text-gray-400 text-base mt-1">Digite seu PIN de 4 números</p>
<% end %>
</div>
<%= form_with url: motorista_login_path, method: :post, id: 'form-pin' do |f| %>